wifi: ath11k: rely on mac80211 debugfs handling for vif
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 15 Jan 2024 10:18:05 +0000 (11:18 +0100)
committerKalle Valo <kvalo@kernel.org>
Thu, 18 Jan 2024 09:58:42 +0000 (11:58 +0200)
commit556857aa1d0855aba02b1c63bc52b91ec63fc2cc
tree6c17b2f28fb37280ee16e58d8863963a83db9b47
parent989cd9fd1ffe1a964429325f9092ea8f0db3f953
wifi: ath11k: rely on mac80211 debugfs handling for vif

mac80211 started to delete debugfs entries in certain cases, causing a
ath11k to crash when it tried to delete the entries later. Fix this by
relying on mac80211 to delete the entries when appropriate and adding
them from the vif_add_debugfs handler.

Fixes: 0a3d898ee9a8 ("wifi: mac80211: add/remove driver debugfs entries as appropriate")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218364
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240115101805.1277949-1-benjamin@sipsolutions.net
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/debugfs.c
drivers/net/wireless/ath/ath11k/debugfs.h
drivers/net/wireless/ath/ath11k/mac.c