Skip to contentSkip to conversation

turning off IBSS (with wext)

DISCUSSION Johannes Berg 2 participants 5 messages Feb 6, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

so I was testing IBSS, and found this strange behaviour:

* wpa_supplicant (or NM?) will try to do SIWMLME(disassoc) in IBSS mode, which seems kinda wrong. Why do we accept it? We send out a frame and then do nothing else.
* Then I thought "iwconfig wlan1 essid off" - but that fails with -EINVAL due to ieee80211_sta_find_ibss

It seems to me that either one of those, or both, should actually turn off beaconing.

johannes

#1 lore raw
Quoted 4 lines · Johannes Berg

Hi,

so I was testing IBSS, and found this strange behaviour:

Quoted 8 lines

* wpa_supplicant (or NM?) will try to do SIWMLME(disassoc) in IBSS mode, which seems kinda wrong. Why do we accept it? We send out a frame and then do nothing else.
* Then I thought "iwconfig wlan1 essid off" - but that fails with -EINVAL due to ieee80211_sta_find_ibss

It seems to me that either one of those, or both, should actually turn off beaconing.

Either one; the supplicant uses SIWMLME(disassoc) at various times (like when leaving a BSS), and NM will sometimes set a NULL SSID when deactivating the device.

Dan

#2 lore raw
Quoted 11 lines · Dan Williams
Quoted 10 lines · Johannes Berg

Hi,

so I was testing IBSS, and found this strange behaviour:

* wpa_supplicant (or NM?) will try to do SIWMLME(disassoc) in IBSS mode, which seems kinda wrong. Why do we accept it? We send out a frame and then do nothing else.
* Then I thought "iwconfig wlan1 essid off" - but that fails with -EINVAL due to ieee80211_sta_find_ibss

Quoted 6 lines
Quoted 2 lines

It seems to me that either one of those, or both, should actually turn off beaconing.

Either one; the supplicant uses SIWMLME(disassoc) at various times (like when leaving a BSS), and NM will sometimes set a NULL SSID when deactivating the device.

Fun. Neither one actually works.

johannes

#3 lore raw
Quoted 12 lines · Johannes Berg
Quoted 11 lines · Dan Williams
Quoted 10 lines · Johannes Berg

Hi,

so I was testing IBSS, and found this strange behaviour:

* wpa_supplicant (or NM?) will try to do SIWMLME(disassoc) in IBSS mode, which seems kinda wrong. Why do we accept it? We send out a frame and then do nothing else.
* Then I thought "iwconfig wlan1 essid off" - but that fails with -EINVAL due to ieee80211_sta_find_ibss

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

It seems to me that either one of those, or both, should actually turn off beaconing.

Either one; the supplicant uses SIWMLME(disassoc) at various times (like when leaving a BSS), and NM will sometimes set a NULL SSID when deactivating the device.

Fun. Neither one actually works.

Yeah; I had to recently patch wpa_supplicant to really disassociate at Jouni's suggestion; just telling the driver to disassoc isn't adequate in all cases, because some drivers will just try to reassoc. Instead, unlocking the BSSID and setting a bogus SSID will usually actually accomplish the disassociation in addition to the MLME disassoc...

Dan

#4 lore raw
Quoted 13 lines · Dan Williams
Quoted 13 lines
Quoted 12 lines
Quoted 8 lines

* wpa_supplicant (or NM?) will try to do SIWMLME(disassoc) in IBSS mode, which seems kinda wrong. Why do we accept it? We send out a frame and then do nothing else.
* Then I thought "iwconfig wlan1 essid off" - but that fails with -EINVAL due to ieee80211_sta_find_ibss

It seems to me that either one of those, or both, should actually turn off beaconing.

Either one; the supplicant uses SIWMLME(disassoc) at various times (like when leaving a BSS), and NM will sometimes set a NULL SSID when deactivating the device.

Quoted 7 lines
Quoted 1 line

Fun. Neither one actually works.

Yeah; I had to recently patch wpa_supplicant to really disassociate at Jouni's suggestion; just telling the driver to disassoc isn't adequate in all cases, because some drivers will just try to reassoc. Instead, unlocking the BSSID and setting a bogus SSID will usually actually accomplish the disassociation in addition to the MLME disassoc...

To be honest, I'm not sure I like disassoc, it doesn't actually make any sense since we never associated. OTOH, wext claims we did... It's all a little fishy. What do you mean by "bogus SSID" here? Hopefully the empty "off" SSID I had in point 2? If so, I guess I'll make that work, or something...

johannes