Re: NetworkManager + Madwifi in Debian - Can't Get IP



On Sun, 2006-11-19 at 23:11 -0500, Dan Williams wrote:
> On Sun, 2006-11-19 at 22:10 -0500, Carlos Moffat wrote:
> > On Sun, 2006-11-19 at 19:06 -0500, Dan Williams wrote:
> > > On Sun, 2006-11-19 at 18:22 -0500, Carlos Moffat wrote:
> > > > Hi,
> > > > 
> > > > I've been trying to track down this issue for a while. Although the NM +
> > > > Madwifi drivers worked for a while for me (I'm using Debian/Sid), I've
> > > > been stuck using the r1500 version of the madwifi drivers, as any newer
> > > > version does not work. If I use a newer version, NM does not get an IP
> > > > address from the router (no WEP, no WPA). 
> > > > 
> > > > The issue is discussed here:
> > > > 
> > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385599
> > > > 
> > > > If I shut down NM, I can get an IP address from the router using
> > > > dhclient. But NM works fine with the older driver, so I'm not sure who's
> > > > to blame here.
> > > 
> > > Probably an interaction with wpa_supplicant and madwifi; can you connect
> > > with plain wpa_supplicant?
> > > 
> > > Dan
> > > 
> > 
> > Mmhh. Can one connect to a dhcp (no WPA, no WEP) using wpasupplicant?
> > How does that work?
> 
> Sure; wpa_supplicant just sets up the connection.  So first stop
> NetworkManager, then:
> 
> Put the following in /etc/wpa_supplicant.conf:
> 
> ctrl_interface_group=0
> ctrl_interface=/var/run/wpa_supplicant
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> network={
>        ssid="my network"
>        key_mgmt=NONE
>        auth_alg=OPEN
> }
> 
> then execute with (as root):
> 
> wpa_supplicant -ddd -iwifi0 -c/etc/wpa_supplicant.conf -Dwext
> 
> and then, when it says "CONNECTED",
> 
> dhclient -1 wifi0
> 

Ok, this is what I get from the first command:

wpa_supplicant -ddd -iath0 -cwpa_supplicant.conf  -Dwext
Initializing interface 'ath0' conf 'wpa_supplicant.conf' driver 'wext'
ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'wpa_supplicant.conf' ->
'/home/cmoffat/wpa_supplicant.conf'
Reading configuration file '/home/cmoffat/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=9):
     50 61 74 61 67 6f 6e 69 61                        Patagonia
key_mgmt: 0x4
auth_alg: 0x1
Priority group 0
   id=0 ssid='Patagonia'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:05:4e:50:7d:bd
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface ath0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 6
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:0f:66:8a:f6:7b
State: DISCONNECTED -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:0f:66:8a:f6:7b
No keys have been configured - skip key clearing
Network configuration found for the current AP
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
EAPOL: External notification - portControl=ForceAuthorized
Associated with 00:0f:66:8a:f6:7b
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:0f:66:8a:f6:7b completed (auth)
[id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
Cancelling scan request
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
WEXT: Operstate: linkmode=-1, operstate=6
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID 00:0f:66:8a:f6:7b into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
State: COMPLETED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 1->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:0f:66:8a:f6:7b
State: DISCONNECTED -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:0f:66:8a:f6:7b
Associated with 00:0f:66:8a:f6:7b
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
Removed BSSID 00:0f:66:8a:f6:7b from blacklist
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:0f:66:8a:f6:7b completed
(reauth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
Cancelling scan request
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
WEXT: Operstate: linkmode=-1, operstate=6
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added


I'm not sure what this means, but at this point, I did 'dhclient -1
ath0' and got:

 dhclient -1 ath0
There is already a pid file /var/run/dhclient.pid with pid 5356
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:05:4e:50:7d:bd
Sending on   LPF/ath0/00:05:4e:50:7d:bd
Sending on   Socket/fallback
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 192.168.1.104
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.1.105
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms


Any ideas?

Carlos

> 
> And see what happens.
> 
> > Thanks,
> > Carlos
> > 
> > 
> > > > Any ideas, or any users of Debian/Sid using the madwifi drivers and NM
> > > > successfully?
> > > > 
> > > > 
> > > > Thanks,
> > > > Carlos
> > > > 
> > > > Other Info:
> > > > 
> > > > * kernel 2.6.17 (tried .16 and .18, no luck)
> > > > * 02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212
> > > > 802.11abg NIC (rev 01)
> > > > * NM 0.6.4
> > > > * wpasupplicant 0.5.5
> > > > * Thinkpad T42p.
> > > > 
> > > > _______________________________________________
> > > > NetworkManager-list mailing list
> > > > NetworkManager-list gnome org
> > > > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> > > 
> > 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]