Skip to content

Commit 7d09e17

Browse files
repkjmberg-intel
authored andcommitted
wifi: mac80211: Recalc offload when monitor stop
When a monitor interface is started, ieee80211_recalc_offload() is called and 802.11 encapsulation offloading support get disabled so monitor interface could get native wifi frames directly. But when this interface is stopped there is no need to keep the 802.11 encpasulation offloading off. This call ieee80211_recalc_offload() when monitor interface is stopped so 802.11 encapsulation offloading gets re-activated if possible. Fixes: 6aea26c ("mac80211: rework tx encapsulation offload API") Signed-off-by: Remi Pommarel <[email protected]> Link: https://msgid.link/840baab454f83718e6e16fd836ac597d924e85b9.1716048326.git.repk@triplefau.lt Signed-off-by: Johannes Berg <[email protected]>
1 parent fcc3560 commit 7d09e17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/mac80211/iface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, bool going_do
686686
ieee80211_del_virtual_monitor(local);
687687

688688
ieee80211_recalc_idle(local);
689+
ieee80211_recalc_offload(local);
689690

690691
if (!(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE))
691692
break;

0 commit comments

Comments
 (0)