wifi: mac80211: remove NO_VIRTUAL_MONITOR monitor interfaces on suspend
Subsystems (2)
PATCH 1/1 wifi: mac80211: remove NO_VIRTUAL_MONITOR monitor interfaces on suspend
When suspending with an ath12k interface with the NO_VIRTUAL_MONITOR hardware flag and monitor mode set, the driver skips removing the interface. This results in a firmware failure and unusable interface, triggering:
WARNING: net/mac80211/pm.c:173 at __ieee80211_suspend+0x44c/0x530 [mac80211], CPU#11: kworker/u73:11/20379 ... ieee80211_suspend+0x24/0x50 wiphy_suspend+0x2c0/0x420 dpm_run_callback+0x60/0x2a0 device_suspend+0x268/0x7f0 async_suspend+0x28/0x58 async_run_entry_fn+0x3c/0x190 process_one_work+0x1bc/0x4f0 worker_thread+0x18c/0x320 kthread+0x128/0x150 ret_from_fork+0x10/0x20
Fix this by also removing interfaces with the NO_VIRTUAL_MONITOR hardware flag in monitor mode.
Failure analysis and fix development was assisted by Claude Fable under my
instruction. Validated on my ASUS Zenbook A16 (Snapdragon X2 Extreme) and
QCC2072.
Fixes 9d40f7e32774 ("wifi: mac80211: add flag to opt out of virtual monitor support")
Signed-off-by Daniel J Blueman <[email protected]>
--- net/mac80211/pm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
net/mac80211/pm.c +5 -1
@@ -151,8 +151,12 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan,continue ;switch (sdata->vif.type) {case NL80211_IFTYPE_AP_VLAN : -case NL80211_IFTYPE_MONITOR :continue ; +case NL80211_IFTYPE_MONITOR : +if (!ieee80211_hw_check (hw,NO_VIRTUAL_MONITOR )) +continue ; +ieee80211_link_release_channel (&sdata->deflink); +break ;case NL80211_IFTYPE_STATION :ieee80211_mgd_quiesce (sdata);break ;
Signature · 1 line
2.55.0