Skip to content

Commit 3bf18e9

Browse files
committed
wifi: mac80211: ibss: stop transmit when merging IBSS
We disable the carrier, but that doesn't immediately take effect, and as such a concurrent transmit can go into the driver while drv_leave_ibss() is happening and confuse it. Synchronize to avoid that. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250102161730.83b58167e80e.I538751fbe1b4302d20f6ed80afb024bca6a2dbf5@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent aa3ce3f commit 3bf18e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/mac80211/ibss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
245245
sdata->vif.cfg.ibss_creator = false;
246246
sdata->vif.bss_conf.enable_beacon = false;
247247
netif_carrier_off(sdata->dev);
248+
synchronize_net();
248249
ieee80211_bss_info_change_notify(sdata,
249250
BSS_CHANGED_IBSS |
250251
BSS_CHANGED_BEACON_ENABLED);

0 commit comments

Comments
 (0)