[PATCH 3.18 53/54] mac80211: Clear beacon_int in ieee80211_do_stop
From: Greg Kroah-Hartman
Date: Tue Dec 11 2018 - 10:44:50 EST
3.18-stable review patch. If anyone has any objections, please let me know.
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
commit 5c21e8100dfd57c806e833ae905e26efbb87840f upstream.
This fixes stale beacon-int values that would keep a netdev
from going up.
Create two VAP on one radio.
vap1 has beacon-int 100, start it.
vap2 has beacon-int 240, start it (and it will fail
because beacon-int mismatch).
reconfigure vap2 to have beacon-int 100 and start it.
It will fail because the stale beacon-int 240 will be used
in the ifup path and hostapd never gets a chance to set the
new beacon interval.
Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
net/mac80211/iface.c | 2 ++
1 file changed, 2 insertions(+)
@@ -958,6 +958,8 @@ static void ieee80211_do_stop(struct iee
if (local->open_count == 0)
+ sdata->vif.bss_conf.beacon_int = 0;
* If the interface goes down while suspended, presumably because
* the device was unplugged and that happens before our resume,