I have a HP laptop with Intel Centrino 2230 N card. The system is Xubuntu 13. Wi-Fi works on and off. When it's down, it still connects to the network and obtains an IP address, but ping to the gateway doesn't work. The network has WPA2. Setting wlan0 down and up doesn't help.Windows Wi-Fi on the same laptop works fine, so it's an issue with the Linux configuration. Also, the access point (TP-Link) works fine with a Mac.EDIT: N mode is disabled because it was slow.Any idea on how to fix it? Here's some diagnostic output:$ iwconfigeth0      no wireless extensions.lo        no wireless extensions.wlan0     IEEE 802.11bg  ESSID:xxxxx            Mode:Managed  Frequency:2.437 GHz  Access Point: D8:5D:4C:xx:xx:xx             Bit Rate=2 Mb/s   Tx-Power=16 dBm             Retry  long limit:7   RTS thr:off   Fragment thr:off          Power Management:on          Link Quality=58/70  Signal level=-52 dBm            Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0          Tx excessive retries:0  Invalid misc:28   Missed beacon:0$ ip addr sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000    link/ether a0:b3:cc:49:e3:50 brd ff:ff:ff:ff:ff:ff3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000    link/ether 84:a6:c8:82:3c:ff brd ff:ff:ff:ff:ff:ff    inet 192.168.1.100/24 brd 192.168.1.255 scope global wlan0       valid_lft forever preferred_lft forever$ ip link sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000    link/ether a0:b3:cc:49:e3:50 brd ff:ff:ff:ff:ff:ff3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000    link/ether 84:a6:c8:82:3c:ff brd ff:ff:ff:ff:ff:ff
Wi-Fi working on and off, mostly off on a HP laptop - take two
ubuntu;wifi;xubuntu