Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121591
b: refs/heads/master
c: 6e0e0bf
h: refs/heads/master
i:
  121589: b34167c
  121587: 96b3537
  121583: e95efc1
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Oct 31, 2008
1 parent b1f0057 commit f3b10b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c49d154a800c55b8948e6d34563e593b500b31b9
refs/heads/master: 6e0e0bf80c963d83f511e1cda652630cf31ebf85
12 changes: 11 additions & 1 deletion trunk/drivers/net/wireless/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,17 @@ ath5k_tasklet_rx(unsigned long data)

rxs.noise = sc->ah->ah_noise_floor;
rxs.signal = rxs.noise + rs.rs_rssi;
rxs.qual = rs.rs_rssi * 100 / 64;

/* An rssi of 35 indicates you should be able use
* 54 Mbps reliably. A more elaborate scheme can be used
* here but it requires a map of SNR/throughput for each
* possible mode used */
rxs.qual = rs.rs_rssi * 100 / 35;

/* rssi can be more than 35 though, anything above that
* should be considered at 100% */
if (rxs.qual > 100)
rxs.qual = 100;

rxs.antenna = rs.rs_antenna;
rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate);
Expand Down

0 comments on commit f3b10b9

Please sign in to comment.