Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87c510fe authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k: trigger nfcal only after multiple missed beacons in AP mode



Single missed (i.e. not transmitted) beacons in AP mode are not very rare
and not necessarily an indicator of strong interference, so only trigger
noise floor recalibration when multiple consecutive beacons could not
be transmitted.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent dd347f2f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -368,6 +368,7 @@ void ath_beacon_tasklet(unsigned long data)
				"missed %u consecutive beacons\n",
				sc->beacon.bmisscnt);
			ath9k_hw_stop_dma_queue(ah, sc->beacon.beaconq);
			if (sc->beacon.bmisscnt > 3)
				ath9k_hw_bstuck_nfcal(ah);
		} else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) {
			ath_dbg(common, ATH_DBG_BSTUCK,