Commit ad81b2f9 authored by Assaf Krauss's avatar Assaf Krauss Committed by John W. Linville
Browse files

mac80211: Fixing slow IBSS rejoin

This patch fixes the issue of slow reconnection to an IBSS cell after
disconnection from it. Now the interface's bssid is reset upon ifdown.

if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 &&
	    (bss = ieee80211_rx_bss_get(dev, bssid,
					ifsta->ssid, ifsta->ssid_len)))

In general disconnection is still not handled properly in mac80211
Signed-off-by: default avatarAssaf Krauss <>
Signed-off-by: default avatarTomas Winkler <>
Signed-off-by: default avatarJohn W. Linville <>
parent a01f5450
......@@ -511,6 +511,7 @@ static int ieee80211_stop(struct net_device *dev)
case IEEE80211_IF_TYPE_STA:
case IEEE80211_IF_TYPE_IBSS:
sdata->u.sta.state = IEEE80211_DISABLED;
memset(sdata->u.sta.bssid, 0, ETH_ALEN);
* When we get here, the interface is marked down.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment