I have a HP laptop with Intel Centrino 2230 card. The system is Xubuntu 13. Wifi worked fine until it stopped a couple of days or maybe weeks ago. Now it's mostly off with some on episodes.
Specifics: I can connect to a network and obtain an IP address, but can't ping the gateway. The network has WPA2. Setting wlan0 down and up doesn't help.
Any idea on how to fix it?
EDIT after the response:
Windows WIFI on the same laptop works fine, so it's an issue with Linux configuration. I remember turning off N mode (don't remember how) because wi-fi was slow, that helped with speed.