Search Linux Wireless

[PATCH 2/2] mac80211: Set radio to unavailable when it fails to reconfigure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ben Greear <greearb@xxxxxxxxxxxxxxx>

This can happen when firmware crashes during recover operations, for
instance.  Seen sometimes during stress test of ath10k systems, particularlly
an IPQ4019 based platform, but I think it could happen on many systems.

Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx>
---
 net/mac80211/util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index f3bc05217f741..ecd56f80b0c82 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2106,6 +2106,7 @@ static void ieee80211_handle_reconfig_failure(struct ieee80211_local *local)
 	mutex_unlock(&local->chanctx_mtx);
 
 	cfg80211_shutdown_all_interfaces(local->hw.wiphy);
+	cfg80211_set_unavailable(local->hw.wiphy, 1);
 }
 
 static void ieee80211_assign_chanctx(struct ieee80211_local *local,
-- 
2.26.2




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux