Commit 3adcf20a authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k: remove the WARN_ON that triggers if generating a beacon fails

During teardown, mac80211 will not return a new beacon. This is normal and
handled properly in the driver, so there's no need to spam the user with a kernel
warning here.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1adb2e2b
...@@ -360,7 +360,6 @@ void ath9k_beacon_tasklet(unsigned long data) ...@@ -360,7 +360,6 @@ void ath9k_beacon_tasklet(unsigned long data)
return; return;
bf = ath9k_beacon_generate(sc->hw, vif); bf = ath9k_beacon_generate(sc->hw, vif);
WARN_ON(!bf);
if (sc->beacon.bmisscnt != 0) { if (sc->beacon.bmisscnt != 0) {
ath_dbg(common, BSTUCK, "resume beacon xmit after %u misses\n", ath_dbg(common, BSTUCK, "resume beacon xmit after %u misses\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment