aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/recv.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-08-13 23:41:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-08-15 16:08:01 -0400
commit0cab329d6037775bda6eee6ed742797c868f09cc (patch)
tree63f2333bb03db5188491a8efe2a45aafb4aa3742 /drivers/net/wireless/ath/ath9k/recv.c
parentf6307dda7f0478c721450e6de956fb5c4fdcb6a4 (diff)
ath9k: Fix phy error handling for DFS
Since the DFS code appears to process the phy errors ATH9K_PHYERR_RADAR and ATH9K_PHYERR_FALSE_RADAR_EXT, check for the correct phyerr status in the main RX tasklet routine. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index 0c23053a49f6..83b3fc57cabb 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -1256,10 +1256,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
1256 unlikely(tsf_lower - rs.rs_tstamp > 0x10000000)) 1256 unlikely(tsf_lower - rs.rs_tstamp > 0x10000000))
1257 rxs->mactime += 0x100000000ULL; 1257 rxs->mactime += 0x100000000ULL;
1258 1258
1259 if (rs.rs_phyerr == ATH9K_PHYERR_RADAR) 1259 if (rs.rs_status & ATH9K_RXERR_PHY) {
1260 ath9k_dfs_process_phyerr(sc, hdr, &rs, rxs->mactime); 1260 ath9k_dfs_process_phyerr(sc, hdr, &rs, rxs->mactime);
1261 1261
1262 if (rs.rs_status & ATH9K_RXERR_PHY) {
1263 if (ath_process_fft(sc, hdr, &rs, rxs->mactime)) { 1262 if (ath_process_fft(sc, hdr, &rs, rxs->mactime)) {
1264 RX_STAT_INC(rx_spectral); 1263 RX_STAT_INC(rx_spectral);
1265 goto requeue_drop_frag; 1264 goto requeue_drop_frag;