Skip to content

Commit 9e82abd

Browse files
greearbgregkh
authored andcommitted
mac80211: Clear beacon_int in ieee80211_do_stop
commit 5c21e81 upstream. This fixes stale beacon-int values that would keep a netdev from going up. To reproduce: 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. Cc: [email protected] Signed-off-by: Ben Greear <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 199a81a commit 9e82abd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mac80211/iface.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,8 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
10321032
if (local->open_count == 0)
10331033
ieee80211_clear_tx_pending(local);
10341034

1035+
sdata->vif.bss_conf.beacon_int = 0;
1036+
10351037
/*
10361038
* If the interface goes down while suspended, presumably because
10371039
* the device was unplugged and that happens before our resume,

0 commit comments

Comments
 (0)