Skip to content

Commit b9caeea

Browse files
committed
wifi: mac80211: ibss: mark IBSS left before leaving
Mark that we left the IBSS before actually leaving (which requires calling the driver). Otherwise, it's possible to have the driver do some work flushing etc. while leaving, and then get into the work trying to join again while all data is being destroyed. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250102161730.81a6c12b304c.I8484f768371e128152a84aa164854cca9ec1066b@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 3bf18e9 commit b9caeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/ibss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,8 +1827,8 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
18271827
{
18281828
struct ieee80211_if_ibss *ifibss = &sdata->u.ibss;
18291829

1830-
ieee80211_ibss_disconnect(sdata);
18311830
ifibss->ssid_len = 0;
1831+
ieee80211_ibss_disconnect(sdata);
18321832
eth_zero_addr(ifibss->bssid);
18331833

18341834
/* remove beacon */

0 commit comments

Comments
 (0)