From: greearb@candelatech.com
To: linux-wireless@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>
Subject: [PATCH 2/2] mac80211: Set radio to unavailable when it fails to reconfigure.
Date: Tue, 22 Sep 2020 13:44:40 -0700 [thread overview]
Message-ID: <20200922204440.25360-2-greearb@candelatech.com> (raw)
In-Reply-To: <20200922204440.25360-1-greearb@candelatech.com>
From: Ben Greear <greearb@candelatech.com>
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@candelatech.com>
---
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
prev parent reply other threads:[~2020-09-22 20:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 20:44 [PATCH 1/2] wireless: Add sysfs file to show if radio is unavailable greearb
2020-09-22 20:44 ` greearb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200922204440.25360-2-greearb@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).