Skip to contentSkip to conversation

debugging network manager association failure?

DISCUSSION Johannes Berg 2 participants 3 messages Mar 28, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Usually I simply use wpa_supplicant itself when testing but for some reason I decided to use nm today... and it failed.

My nm is 0.6.4 and wpa_supplicant 0.6.0. When I use wpa_supplicant with a config file like this:
--- %< ---
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="berg"
        priority=1
        key_mgmt=WPA-PSK
        psk="stuffhere"
        pairwise=CCMP
        group=CCMP TKIP
}

--- >% ---

it works perfectly. But with nm it doesn't do anything at all, stracing it yields that it thinks it's getting authentication timeouts with 00:...:00. Any idea what could be causing this? Is this a bug in mac80211?

johannes

#1 lore raw
Quoted 20 lines · Johannes Berg

Hi,

Usually I simply use wpa_supplicant itself when testing but for some reason I decided to use nm today... and it failed.

My nm is 0.6.4 and wpa_supplicant 0.6.0. When I use wpa_supplicant with a config file like this:
--- %< ---
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="berg"
        priority=1
        key_mgmt=WPA-PSK
        psk="stuffhere"
        pairwise=CCMP
        group=CCMP TKIP
}
Quoted 6 lines

--- >% ---

it works perfectly. But with nm it doesn't do anything at all, stracing it yields that it thinks it's getting authentication timeouts with 00:...:00. Any idea what could be causing this? Is this a bug in mac80211?

There's been weird errors with wpa_supplicant that I can't quite wrap my head around. There are two cases:

1) NM can't connect to wpa_supplicant's control socket sometimes; this is fixed by using the D-Bus interface

2) The _same_ settings sent to wpa_supplicant via NM, and those same settings in the config file, produce different results. I've compared the settings of quite a few cases of this and found no appreciable differences, but still NM fails to associate. I was kind of hoping this would all go away with the switch to the D-Bus interface in 0.7, because the socket-based control interface has been so much of a hassle. But it probably needs to be fixed for the 0.6.x branch.

Could you possibly get some driver traces of what happens in the driver for plain wpa_supplicant and then with NM+wpa_supplicant? If the config that NM is sending to wpa_supplicant is the same, then the only thing I can think of is some randomly different driver state or interaction between the 3 unrelated to the specific config info that's causing associations to fail.

Dan

#2 lore raw
Quoted 5 lines · Dan Williams

There's been weird errors with wpa_supplicant that I can't quite wrap my head around. There are two cases:

1) NM can't connect to wpa_supplicant's control socket sometimes; this is fixed by using the D-Bus interface

I'm pretty sure it is connected, looking at the strace I see some things sent to a socket.

Quoted 7 lines

2) The _same_ settings sent to wpa_supplicant via NM, and those same settings in the config file, produce different results. I've compared the settings of quite a few cases of this and found no appreciable differences, but still NM fails to associate. I was kind of hoping this would all go away with the switch to the D-Bus interface in 0.7, because the socket-based control interface has been so much of a hassle. But it probably needs to be fixed for the 0.6.x branch.

Strange stuff.

Quoted 6 lines

Could you possibly get some driver traces of what happens in the driver for plain wpa_supplicant and then with NM+wpa_supplicant? If the config that NM is sending to wpa_supplicant is the same, then the only thing I can think of is some randomly different driver state or interaction between the 3 unrelated to the specific config info that's causing associations to fail.

What exactly would you want? A printk in all the ioctl handlers in mac80211 that shows all the parameters set?

johannes