]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mac80211: Recalc offload when monitor stop
authorRemi Pommarel <repk@triplefau.lt>
Sat, 18 May 2024 16:07:33 +0000 (18:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 10:29:25 +0000 (12:29 +0200)
commit7d09e17c0415fe6d946044c7e70bce31cda952ec
tree179249888bbdeadfbd7cc0f3913d334d61f60d8c
parentfcc356020a0171106c9ba524ba05a6792668451e
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: 6aea26ce5a4c ("mac80211: rework tx encapsulation offload API")
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Link: https://msgid.link/840baab454f83718e6e16fd836ac597d924e85b9.1716048326.git.repk@triplefau.lt
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c