aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r--drivers/net/wireless/ath5k/base.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index c98380845fa7..b1e9a47c1c55 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -1778,7 +1778,17 @@ accept:
1778 1778
1779 rxs.noise = sc->ah->ah_noise_floor; 1779 rxs.noise = sc->ah->ah_noise_floor;
1780 rxs.signal = rxs.noise + rs.rs_rssi; 1780 rxs.signal = rxs.noise + rs.rs_rssi;
1781 rxs.qual = rs.rs_rssi * 100 / 64; 1781
1782 /* An rssi of 35 indicates you should be able use
1783 * 54 Mbps reliably. A more elaborate scheme can be used
1784 * here but it requires a map of SNR/throughput for each
1785 * possible mode used */
1786 rxs.qual = rs.rs_rssi * 100 / 35;
1787
1788 /* rssi can be more than 35 though, anything above that
1789 * should be considered at 100% */
1790 if (rxs.qual > 100)
1791 rxs.qual = 100;
1782 1792
1783 rxs.antenna = rs.rs_antenna; 1793 rxs.antenna = rs.rs_antenna;
1784 rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate); 1794 rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate);