Networking :: Getting WPA Supplicant working



A must for me....

I have a D-Link PCMCIA card with the Atheros chipset.

The card is recognized no problem.

From the system menu it is not clear what to do for WPA.  Searching around here, I tried:

/etc/wpa_supplicant.conf

network={
       ssid="Mynetwork"
       proto=WPA
       key_mgmt=WPA-PSK
       pairwise=TKIP
       group=TKIP WEP40
       psk="MySecret"
       priority=2
}

(this is what I have in my wpa config on my Centos based notebook and works).

Then I issued the command:

sudo wpa_supplicant -c/etc/wpa_supplicant.conf -iath0 -d -B -Dmadwifi

I see what looks like a successful authentication. with wpa_supplicant daemonizing.

But no dhcp?

I tried  dhclient, but command not found.

What is this pump command I see used in some discussions?

It's DSL's dhcp client. Usage: pump -i ath0
Quote (curaga @ Aug. 31 2007,13:53)
It's DSL's dhcp client. Usage: pump -i ath0

oh.

I did that, and it failed.  And afterwards, I did an ifconfig

and ath0 was no longer listed.

Unless you definitely know your AP is using TKIP I'd change that to CCMP. I have a Netgear AP & it doesn't make it obvious in the documentation, but when you switch from WEP to WPA it changed from TKIP to CCMP (& there's no way of manually altering this setting on the AP.
wpa_supplicant by default uses WPA for entries in wpa_supplicant.conf.  Just using:

network={
   ssid="...."
   psk="...."
}

should be sufficient.

Also try -Bdd for more debugging output when you run wpa_supplicant.

Next Page...
original here.