Madwifi + wpa_supplicant (cannot get IP)

Carlos Moffat carlos.lst at eldiabloenlosdetalles.net
Tue Nov 28 22:31:51 EST 2006


On Wed, 2006-11-29 at 11:56 +1000, Kel Modderman wrote:
> On Wednesday 29 November 2006 11:44, Carlos Moffat wrote:
> > Hi,
> >
> > I'm having trouble using network-manager, and the problem seems to be
> > with the interaction of wpa_supplicant and madwifi.
> >
> > I'm using wpa_supplicant v0.5.5 and madwifi 0.9.2 (r1809) with a 2.6.17
> > kernel. For starters, I'm trying to get dhcp to work, that is, connect
> > to a completely open AP (no WEP, WPA, etc). This does not seems to work.
> > I have the following config:
> >
> > ctrl_interface=/var/run/wpa_supplicant
> > eapol_version=1
> > ap_scan=1
> > fast_reauth=1
> >
> > network={
> >        ssid="Patagonia"
> >        key_mgmt=NONE
> >        auth_alg=OPEN
> >  }
> >
> > and try (with network-manager turned off and just after modprobing
> > madwifi, just in case):
> >
> >  wpa_supplicant -iath0 -cwpa_supplicant.conf -d
> 
> You did not specify driver type (-Dwext for new madwifi), so wpa_supplicant 
> assumes you want the default driver type `hostap' which is obviously wrong.
> 

Ok, let's try again:

wpa_supplicant -iath0 -cwpa_supplicant.conf -Dwext -d
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
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 44
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan
to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 128 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:0f:66:8a:f6:7b ssid='Patagonia'
Trying to associate with 00:0f:66:8a:f6:7b (SSID='Patagonia' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWAUTH]: Invalid argument
WEXT auth param 1 value 0x1 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=18
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:0f:66:8a:f6:7b into blacklist
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 128 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:0f:66:8a:f6:7b ssid='Patagonia'
Trying to associate with 00:0f:66:8a:f6:7b (SSID='Patagonia' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWAUTH]: Invalid argument
WEXT auth param 1 value 0x1 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=18
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:0f:66:8a:f6:7b blacklist count incremented to 2
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 128 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - blacklisted
No APs found - clear blacklist and try again
Removed BSSID 00:0f:66:8a:f6:7b from blacklist (clear)
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:0f:66:8a:f6:7b ssid='Patagonia'
Trying to associate with 00:0f:66:8a:f6:7b (SSID='Patagonia' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWAUTH]: Invalid argument
WEXT auth param 1 value 0x1 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=18
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:0f:66:8a:f6:7b into blacklist
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 128 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:0f:66:8a:f6:7b ssid='Patagonia'
Trying to associate with 00:0f:66:8a:f6:7b (SSID='Patagonia' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWAUTH]: Invalid argument
WEXT auth param 1 value 0x1 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=18
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:0f:66:8a:f6:7b blacklist count incremented to 2
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 128 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - blacklisted
No APs found - clear blacklist and try again
Removed BSSID 00:0f:66:8a:f6:7b from blacklist (clear)
Selecting BSS from priority group 0
0: 00:0f:66:8a:f6:7b ssid='Patagonia' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:0f:66:8a:f6:7b ssid='Patagonia'
Trying to associate with 00:0f:66:8a:f6:7b (SSID='Patagonia' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWAUTH]: Invalid argument
WEXT auth param 1 value 0x1 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=18

if I send it to background right about now, dhclient does not get an
IP. 

Thanks for the help.

Carlos

> >
> > wpa_supplicant -iath0 -cwpa_supplicant.conf -d
> > Initializing interface 'ath0' conf 'wpa_supplicant.conf' driver
> > 'default' 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
> > 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_hostap_set_wpa: enabled=1
> > wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0
> > key_len=0
> > ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
> > Failed to set encryption.
> 
> And you get many messages like this due to using wrong driver type.
> 
> Thanks, Kel.




More information about the HostAP mailing list