Wireless troubleshooting on Linux

For once something did not work out of the box on my Ubuntu 9.10 installation. My ASUS WL-167G USB 2.0 WLAN adapter could not connect to my HOME wireless network – UT STarcom Model WA3002G4 wireless router. Out of the box Ubuntu uses NetworkManager to connect to wireless networks. After several attempts and Internet researching I settled on the following set of guidelines which has since helped me in troubleshooting other wireless related issues. If nothing seems to work for you, try this as a last resort and isolate the problem. The goal is to get the connection established without compromising on wireless security.

  1. Router Side Configuration:
    1. Enable broadcasting of network name or SSID if it is turned off.
    2. Turn off or disable MAC address filtering. Any MAC should be able to connect.
    3. Set wireless security to WPA/WPA2-PSK.
    4. Setup a passphrase.
  2. Desktop/Laptop side configuration:
    1. NetworkManager is not very useful. If it does not work outright, don’t bother with it at this stage.
    2. Setup your /etc/wpa_supplicant.conf file as shown in end.
    3. Setup your /etc/network/intefaces as shown in the end.
    4. ifdown interface_name; ifup interface_name
  3. Conclusions
    1. If at the end of 4 you could connect, congratulations, there is nothing wrong with your chipset or driver or the router. You can continue to play with the above setup and modify it as per your needs to turn on or off some parameters.
    2. If at the end of 4 you could not connect, do the following from a terminal.
      1. ifdown interface_name
      2. Run “iwlist scan” from a terminal. You should see your network listed if you have correctly configured your router as mentioned above. If not something is wrong with the driver. Try to verify that the chipset or the WLAN card model drivers are available for your linux distribution. If you can see your network proceed to the next step.
      3. wpa_supplicant -dd -c/etc/wpa_supplicant.conf
      4. The above command does a lot of verbose printing. The output tells a lot about where the problem is. This is where it gets murkier.

# cat /etc/wpa_supplicant.conf



#cat /etc/network/interfaces #wlan0 is the name of my interface.

iface wlan0 inet dhcp
pre-up wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

auto wlan0


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: