[TriLUG] having trouble getting wpa setup

Joseph Mack NA3T jmack at wm7d.net
Sun Jun 24 21:49:26 EDT 2007

On Sun, 24 Jun 2007, Nick Goldwater wrote:

> I posted this earlier:

yes I remember there's been a few posts in the past on 
wpa_supplicant. I should go look in the archives.

> #You may want to try wpa_supplicant and remove all the 
> other network managers.

that's the approach I was trying

> I have also found that 'iwpriv 
> athx bgscan 0' works well with #cisco ap's.


> #
> #Ex: wpa_supplicant.conf
> #
> #ap_scan=1
> #
> #network={
> #        scan_ssid=1
> #        ssid="your id"
> #        proto=WPA RSN
> #        key_mgmt=WPA-PSK
> #        pairwise=CCMP TKIP
> #        group=CCMP TKIP
> #        priority=your integer here
> #        psk=your hash here
> #}

I was looking for a working WEP example. The example in 
wpa_supplicant is only a coupld of lines long, so you'd 
think it hard to get wrong. But since it doesn't work I was 
hoping to get confirmation from someone who's using wpa to 
do wep.

> The reason for the iwpriv is to deal with multiple ap signals with the same ssid.

I have 3 WAPs spread around the house all with the same 
SSID (and on different channels). It's never been a problem 
and I'd quite forgotten about it.

> Here is my /etc/network/interfaces

> auto ath0
> iface ath0 inet dhcp
> pre-up wpa_supplicant -Bw -Dnadwifi -iath0 -c/etc/wpa_supplicant.conf
> post-down killall -q qpa_supplicant

that's simplified things a bit.

Now I get the association with the wap (at least the logs 
recover the MAC of the wap), and I get the hexkey in the 
output of iwconfig (and if I put some bum values in for the 
key, the output of iwconfig changes, so it really is reading 
my wpa_supplicant.conf, and not left over in cache from my 
old scripts), but the dhcpd server never sees the request 
and the local device (which to me is eth0) goes down. This 
happens for two different cards. It's like the wep key is 
not getting through (I assume the key has to be setup before 
you can dhcp).

> iface eth0 inet dhcp
> auto eth0
> laptop:~# lsmod | grep wlan
> wlan_wep                7040  1
> wlan_scan_sta          13696  1
> wlan                  203076  5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci

have not heard of these. A quick google and they seem to 
have come from *BSD and are part of the madwifi package. 
wlan_wep seems to do the wep cryptography. I'd assumed that 
was done in hardware/firmware on the wifi card once you sent 
the key.

Since my key isn't getting through, maybe I'll try the 
madwifi stuff and wlan_wep.



Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

More information about the TriLUG mailing list