ath9k: add support for per-chain signal strength info
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 590-ath9k_debug_remove_packet_rssi.patch
1 --- a/drivers/net/wireless/ath/ath9k/debug.c
2 +++ b/drivers/net/wireless/ath/ath9k/debug.c
3 @@ -954,34 +954,6 @@ static ssize_t read_file_recv(struct fil
4 "%18s : %10u\n", "DECRYPT BUSY ERR",
5 sc->debug.stats.rxstats.decrypt_busy_err);
6
7 - len += snprintf(buf + len, size - len,
8 - "%18s : %10d\n", "RSSI-CTL0",
9 - sc->debug.stats.rxstats.rs_rssi_ctl0);
10 -
11 - len += snprintf(buf + len, size - len,
12 - "%18s : %10d\n", "RSSI-CTL1",
13 - sc->debug.stats.rxstats.rs_rssi_ctl1);
14 -
15 - len += snprintf(buf + len, size - len,
16 - "%18s : %10d\n", "RSSI-CTL2",
17 - sc->debug.stats.rxstats.rs_rssi_ctl2);
18 -
19 - len += snprintf(buf + len, size - len,
20 - "%18s : %10d\n", "RSSI-EXT0",
21 - sc->debug.stats.rxstats.rs_rssi_ext0);
22 -
23 - len += snprintf(buf + len, size - len,
24 - "%18s : %10d\n", "RSSI-EXT1",
25 - sc->debug.stats.rxstats.rs_rssi_ext1);
26 -
27 - len += snprintf(buf + len, size - len,
28 - "%18s : %10d\n", "RSSI-EXT2",
29 - sc->debug.stats.rxstats.rs_rssi_ext2);
30 -
31 - len += snprintf(buf + len, size - len,
32 - "%18s : %10d\n", "Rx Antenna",
33 - sc->debug.stats.rxstats.rs_antenna);
34 -
35 PHY_ERR("UNDERRUN", ATH9K_PHYERR_UNDERRUN);
36 PHY_ERR("TIMING", ATH9K_PHYERR_TIMING);
37 PHY_ERR("PARITY", ATH9K_PHYERR_PARITY);
38 @@ -1058,16 +1030,6 @@ void ath_debug_stat_rx(struct ath_softc
39 RX_PHY_ERR_INC(phyerr);
40 }
41
42 - sc->debug.stats.rxstats.rs_rssi_ctl0 = rs->rs_rssi_ctl0;
43 - sc->debug.stats.rxstats.rs_rssi_ctl1 = rs->rs_rssi_ctl1;
44 - sc->debug.stats.rxstats.rs_rssi_ctl2 = rs->rs_rssi_ctl2;
45 -
46 - sc->debug.stats.rxstats.rs_rssi_ext0 = rs->rs_rssi_ext0;
47 - sc->debug.stats.rxstats.rs_rssi_ext1 = rs->rs_rssi_ext1;
48 - sc->debug.stats.rxstats.rs_rssi_ext2 = rs->rs_rssi_ext2;
49 -
50 - sc->debug.stats.rxstats.rs_antenna = rs->rs_antenna;
51 -
52 spin_lock(&sc->debug.samp_lock);
53 RX_SAMP_DBG(jiffies) = jiffies;
54 RX_SAMP_DBG(rssi_ctl0) = rs->rs_rssi_ctl0;
55 --- a/drivers/net/wireless/ath/ath9k/debug.h
56 +++ b/drivers/net/wireless/ath/ath9k/debug.h
57 @@ -164,13 +164,6 @@ struct ath_rx_stats {
58 u32 post_delim_crc_err;
59 u32 decrypt_busy_err;
60 u32 phy_err_stats[ATH9K_PHYERR_MAX];
61 - int8_t rs_rssi_ctl0;
62 - int8_t rs_rssi_ctl1;
63 - int8_t rs_rssi_ctl2;
64 - int8_t rs_rssi_ext0;
65 - int8_t rs_rssi_ext1;
66 - int8_t rs_rssi_ext2;
67 - u8 rs_antenna;
68 };
69
70 enum ath_reset_type {