Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134051
b: refs/heads/master
c: e56db71
h: refs/heads/master
i:
  134049: ad0c94d
  134047: 17c140f
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 29, 2009
1 parent ddefd7c commit 5a9a91b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 38b33707a1ec77f7b4c92ae41cfe93318014f5bf
refs/heads/master: e56db718468416ce5ff1ba05e7fa5026424befd5
9 changes: 3 additions & 6 deletions trunk/drivers/net/wireless/ath9k/calib.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "reg.h"
#include "phy.h"

static const int16_t NOISE_FLOOR[] = { -96, -93, -98, -96, -93, -96 };

/* We can tune this as we go by monitoring really low values */
#define ATH9K_NF_TOO_LOW -60

Expand Down Expand Up @@ -740,10 +738,9 @@ s16 ath9k_hw_getchan_noise(struct ath_hal *ah, struct ath9k_channel *chan)
chan->channel, chan->channelFlags);
return ATH_DEFAULT_NOISE_FLOOR;
}
if (ichan->rawNoiseFloor == 0) {
enum wireless_mode mode = ath9k_hw_chan2wmode(ah, chan);
nf = NOISE_FLOOR[mode];
} else
if (ichan->rawNoiseFloor == 0)
nf = -96;
else
nf = ichan->rawNoiseFloor;

if (!ath9k_hw_nf_in_range(ah, nf))
Expand Down

0 comments on commit 5a9a91b

Please sign in to comment.