[pkg-wpa-devel] Bug#483207: [wpasupplicant] bonding breaks wpa_supplicant

aerusso aerusso at andrew.cmu.edu
Wed May 28 18:24:23 UTC 2008


I have additional information. Everything appears to work fine
as long as the "Key negotiation" occurs while the bond (in my
case, bond0) only has the wifi interface (in my case ath0) enslaved.

For instance,

> % ifenslave bond0 ath0 eth0
> % wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ath0 -b bond0 -D madwifi
> CTRL-EVENT-SCAN-RESULTS
> Trying to associate with <MAC ADDRESS REMOVED> (SSID='wifi' freq=2417 MHz)
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> Association request to the driver failed
> Associated with <MAC ADDRESS REMOVED>
> CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
> CTRL-EVENT-SCAN-RESULTS
> Trying to associate with <MAC ADDRESS REMOVED> (SSID='wifi' freq=2417 MHz)
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> Association request to the driver failed
> Associated with <MAC ADDRESS REMOVED>
> CTRL-EVENT-TERMINATING - signal 2 received
> % ifenslave -d bond0 eth0
> % wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ath0 -b bond0 -D madwifi
> CTRL-EVENT-SCAN-RESULTS
> Trying to associate with <MAC ADDRESS REMOVED> (SSID='wifi' freq=2417 MHz)
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> Association request to the driver failed
> CTRL-EVENT-SCAN-RESULTS
> Associated with <MAC ADDRESS REMOVED>
> WPA: Key negotiation completed with <MAC ADDRESS REMOVED> [PTK=TKIP GTK=TKIP]
> CTRL-EVENT-CONNECTED - Connection to <MAC ADDRESS REMOVED> completed (auth) [id=0 id_str=]

Better still, and I think this will count as a workaround in my case, is:

(I am using bonding mode=1; automatic failover)

> % ifenslave bond0 ath0 eth0
> % echo "ath0" > /sys/class/net/bond0/bonding/primary
> % wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ath0 -b bond0 -D madwifi
> CTRL-EVENT-SCAN-RESULTS
> Trying to associate with <MAC ADDRESS REMOVED> (SSID='wifi' freq=2417 MHz)
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> Association request to the driver failed
> Associated with 00:13:10:f1:ab:07
> WPA: Key negotiation completed with <MAC ADDRESS REMOVED> [PTK=TKIP GTK=TKIP]
> CTRL-EVENT-CONNECTED - Connection to <MAC ADDRESS REMOVED> completed (auth) [id=0 id_str=]

It also appears that the primary interface can be switched to eth0 later on, but
I haven't had enough time to see how this affects the robustness of wpa_supplicant's behavior.

Also, it is very important that -b bond0 be used, even though -b is only mentioned in TFM
as for a "bridge." It should also be mentioned as required for a bond.

Antonio





More information about the Pkg-wpa-devel mailing list