mirror of
https://github.com/torvalds/linux
synced 2024-10-24 20:29:05 +00:00
ath9k_hw: rename getNoiseFloorThresh() to ath9k_hw_loadnf()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
37c3e8b9d7
commit
b43d59fb3e
|
@ -89,9 +89,9 @@ static void ath9k_hw_update_nfcal_hist_buffer(struct ath9k_nfcal_hist *h,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool getNoiseFloorThresh(struct ath_hw *ah,
|
static bool ath9k_hw_get_nf_thresh(struct ath_hw *ah,
|
||||||
enum ieee80211_band band,
|
enum ieee80211_band band,
|
||||||
int16_t *nft)
|
int16_t *nft)
|
||||||
{
|
{
|
||||||
switch (band) {
|
switch (band) {
|
||||||
case IEEE80211_BAND_5GHZ:
|
case IEEE80211_BAND_5GHZ:
|
||||||
|
@ -612,7 +612,7 @@ int16_t ath9k_hw_getnf(struct ath_hw *ah,
|
||||||
} else {
|
} else {
|
||||||
ath9k_hw_do_getnf(ah, nfarray);
|
ath9k_hw_do_getnf(ah, nfarray);
|
||||||
nf = nfarray[0];
|
nf = nfarray[0];
|
||||||
if (getNoiseFloorThresh(ah, c->band, &nfThresh)
|
if (ath9k_hw_get_nf_thresh(ah, c->band, &nfThresh)
|
||||||
&& nf > nfThresh) {
|
&& nf > nfThresh) {
|
||||||
ath_print(common, ATH_DBG_CALIBRATE,
|
ath_print(common, ATH_DBG_CALIBRATE,
|
||||||
"noise floor failed detected; "
|
"noise floor failed detected; "
|
||||||
|
|
Loading…
Reference in a new issue