mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
ath5k: initialize default noise floor
Initialize noise floor variable with a default of -95. This was used uninitialized in the signal strength (RSSI -> dBm) conversion until the first noise floor calibration was completed. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b4ea449df9
commit
9d332c82b4
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
|
|||
ah->ah_limit_tx_retries = AR5K_INIT_TX_RETRY;
|
||||
ah->ah_software_retry = false;
|
||||
ah->ah_ant_mode = AR5K_ANTMODE_DEFAULT;
|
||||
ah->ah_noise_floor = -95; /* until first NF calibration is run */
|
||||
|
||||
/*
|
||||
* Find the mac version
|
||||
|
|
|
|||
Loading…
Reference in a new issue