[pkg-wpa-devel] Re: Don't know how to debug, please help.

Kel Modderman kelrin at tpg.com.au
Thu May 4 11:38:54 UTC 2006


B. Zhang wrote:
> On Thu, 2006-05-04 at 20:16 +1000, Kel Modderman wrote:
>   
>> B. Zhang wrote:
>>     
>>> Hi,
>>>   
>>>       
>> Can you please send to the pkg-wpa mailing list next time so that the 
>> other developers may help? Who knows, I could have been away or 
>> completely gone and you'd get no response . . .
>>     
>
> OK. Sorry.
>   

Please don't be sorry, just keep it in mind that other people may be 
able to help too.

>   
>>> I am testing the kernel wireless-dev tree:
>>> http://www.kernel.org/git/?p=linux/kernel/git/linville/wireless-dev.git;a=summary
>>> which includes two versions (devicescape 80211 and softmac ieee80211) of
>>> driver bcm43xx ( http://bcm43xx.berlios.de/ ).
>>>
>>> The devicescape version uses a virtual interface wlan0
>>> ( http://www.kernel.org/git/?p=linux/kernel/git/linville/wireless-dev.git;a=commit;h=dd6804a119c5ee1f8314a46a7ee327e6e7719059 )and the softmac version uses interface eth1.
>>>
>>> The two work with 0.4.8-1, but upgrading to 0.4.8-3 or 0.4.8-4 breaks
>>> only devicescape version wlan0 (dhcp or not, same result). 
>>> If I use ifupdown.sh from 0.4.8-1 in -3 and -4, it works. This is the
>>> iwconfig:
>>> # iwconfig 
>>> lo        no wireless extensions.
>>>
>>> eth0      no wireless extensions.
>>>
>>> sit0      no wireless extensions.
>>>
>>> wmaster0ap  no wireless extensions.
>>>
>>> wmaster0  IEEE 802.11g  ESSID:""
>>>           Mode:Master  Frequency:2.437 GHz
>>>           RTS thr:off   Fragment thr=2346 B
>>>           Encryption key:off
>>>
>>> wlan0     IEEE 802.11g  ESSID:"xxxxxx"
>>>           Mode:Managed  Frequency:2.437 GHz  Access Point:
>>> xx:xx:xx:xx:xx:xx
>>>           RTS thr:off   Fragment thr=2346 B
>>>
>>>   
>>>       
>> I need to know your interfaces configuration 
>>     
> -------------------
> iface wlan0 inet dhcp
>   wpa-conf /home/zhang/.wpa/wpa_supplicant.conf
>   pre-up modprobe bcm43xx_d80211
> -----------------------
> -----------------------
> /home/zhang/.wpa/wpa_supplicant.conf:
> ctrl_interface=/var/run/wpa_supplicant
> network={
>   ssid="xxxxx"
>   key_mgmt=WPA-PSK
>   proto=WPA
>   pairwise=TKIP
>   group=TKIP
>   psk="xxxxxxxxxx"
> }
> -----------------------
>
>   
>> and also when the operation 
>> fails. If you could run ifup --verbose $iface and send that output too.
>>
>>     
>
> Thanks for --verbose option. I found the problem and workaround:
> With 0.4.8-3 or -4, I must add 
> wpa-driver wext
> in /etc/network/interfaces.
>
> When it works with 0.4.8-1 and without "wpa-driver wext"
> in /etc/network/interfaces, I get
> --------------------
> # ifup --verbose wlan0
> Configuring interface wlan0=wlan0 (inet)
> modprobe bcm43xx_d80211
> run-parts --verbose /etc/network/if-pre-up.d
> run-parts: executing /etc/network/if-pre-up.d/wireless-tools
> run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
> wpa_supplicant: ctrl_interface=/var/run/wpa_supplicant
> wpa_supplicant: wpa-driver not provided, using "wext"
> wpa_supplicant: /sbin/wpa_supplicant -B
> -P /var/run/wpa_supplicant.wlan0.pid -i wlan0
> -c /home/zhang/.wpa/wpa_supplicant.conf -D wext
> ioctl[SIOCSIWAUTH]: Operation not supported
> WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not
> supported
> WEXT auth param 5 value 0x1 - wpa_supplicant: ctrl_interface socket
> located at /var/run/wpa_supplicant/wlan0
>
> dhclient -e -pf /var/run/dhclient.wlan0.pid
> -lf /var/run/dhclient.wlan0.leases wlan0
> Internet Software Consortium DHCP Client 2.0pl5
> Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
> All rights reserved.
>
> Please contribute if you find this software useful.
> For info, please visit http://www.isc.org/dhcp-contrib.html
>
> sit0: unknown hardware address type 776
> sit0: unknown hardware address type 776
> Listening on LPF/wlan0/xx:xx:xx:xx:xx:xx
> Sending on   LPF/wlan0/xx:xx:xx:xx:xx:xx
> Sending on   Socket/fallback/fallback-net
> DHCPREQUEST on wlan0 to 255.255.255.255 port 67
> DHCPACK from 192.168.0.1
> bound to 192.168.0.101 -- renewal in 302400 seconds.
> /etc/init.d/snort restart
> Stopping Network Intrusion Detection System: snort(eth0).
> Starting Network Intrusion Detection System:
> snort(eth0)No /etc/snort/snort.eth0.conf, defaulting to snort.conf
> .
> run-parts --verbose /etc/network/if-up.d
> run-parts: executing /etc/network/if-up.d/000resolvconf
> run-parts: executing /etc/network/if-up.d/postfix
> --------------------------------------------------------------
>
>
> When it doesn't work using 0.4.8-3 or -4 and without "wpa-driver wext"
> in /etc/network/interfaces, I have
> ---------------------------------
> # ifup --verbose wlan0
> Configuring interface wlan0=wlan0 (inet)
> modprobe bcm43xx_d80211
> run-parts --verbose /etc/network/if-pre-up.d
> run-parts: executing /etc/network/if-pre-up.d/wireless-tools
> run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
> wpa_supplicant: ctrl_interface=/var/run/wpa_supplicant
> wpa_supplicant: guessing wpa-driver type of "wired" for wlan0
>                                              ^^^^^ 
>
> wpa_supplicant: /sbin/wpa_supplicant -B
> -P /var/run/wpa_supplicant.wlan0.pid -i wlan0
> -c /home/zhang/.wpa/wpa_supplicant.conf -D wired
> Starting /sbin/wpa_supplicant...
> wpa_supplicant: ctrl_interface socket located
> at /var/run/wpa_supplicant/wlan0
>
> dhclient -e -pf /var/run/dhclient.wlan0.pid
> -lf /var/run/dhclient.wlan0.leases wlan0
> Internet Software Consortium DHCP Client 2.0pl5
> Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
> All rights reserved.
>
> Please contribute if you find this software useful.
> For info, please visit http://www.isc.org/dhcp-contrib.html
>
> sit0: unknown hardware address type 776
> sit0: unknown hardware address type 776
> Listening on LPF/wlan0/xx:xx:xx:xx:xx:xx
> Sending on   LPF/wlan0/xx:xx:xx:xx:xx:xx
> Sending on   Socket/fallback/fallback-net
> DHCPREQUEST on wlan0 to 255.255.255.255 port 67
> DHCPREQUEST on wlan0 to 255.255.255.255 port 67
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
> No DHCPOFFERS received.
> Trying recorded lease 192.168.0.101
> PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
>
> --- 192.168.0.1 ping statistics ---
> 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
>
> No working leases in persistent database.
>
> Exiting.
> ----------------------------------
>
>
> Now it works with 0.4.8-4 after adding "wpa-driver wext"
> in /etc/network/interfaces:
> ---------------------------
> # ifup --verbose wlan0
> Configuring interface wlan0=wlan0 (inet)
> modprobe bcm43xx_d80211
> run-parts --verbose /etc/network/if-pre-up.d
> run-parts: executing /etc/network/if-pre-up.d/wireless-tools
> run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
> wpa_supplicant: ctrl_interface=/var/run/wpa_supplicant
> wpa_supplicant: terminating wpa_supplicant daemon
> Stopped wpa_supplicant (pid 5673).
> wpa_supplicant: /sbin/wpa_supplicant -B
> -P /var/run/wpa_supplicant.wlan0.pid -i wlan0
> -c /home/zhang/.wpa/wpa_supplicant.conf -D wext
> Starting /sbin/wpa_supplicant...
> ioctl[SIOCSIWAUTH]: Operation not supported
> WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not
> supported
> WEXT auth param 5 value 0x1 - wpa_supplicant: ctrl_interface socket
> located at /var/run/wpa_supplicant/wlan0
> -------------------------------
>
>   

Thanks for the feedback! That is exactly what I suspected. Some modules 
are not being detected in /proc/net/wireless (although ipw* and madwifi 
are not having this problem so far).

Can you please send me "cat /proc/net/wireless", I am curious.

Thanks, Kel.



More information about the Pkg-wpa-devel mailing list