Skip to content

Commit

Permalink
ath9k: move ATH9K_RSSI_BAD to hw.h
Browse files Browse the repository at this point in the history
mac.c is now core driver independent.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Oct 7, 2009
1 parent cfe8cba commit 990b70a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions drivers/net/wireless/ath/ath9k/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
ATH9K_HW_FIX += eeprom.o \
mac.o \

ATH9K_HW_FIX += eeprom.o
ATH9K_HW += hw.o \
eeprom_def.o \
eeprom_4k.o \
eeprom_9287.o \
calib.o \
ani.o \
phy.o \
btcoex.o
btcoex.o \
mac.o \

ath9k-y += $(ATH9K_HW) \
$(ATH9K_HW_FIX) \
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/ath/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ struct ath_tx_control {

#define ATH_RSSI_LPF_LEN 10
#define RSSI_LPF_THRESHOLD -20
#define ATH9K_RSSI_BAD 0x80
#define ATH_RSSI_EP_MULTIPLIER (1<<7)
#define ATH_EP_MUL(x, mul) ((x) * (mul))
#define ATH_RSSI_IN(x) (ATH_EP_MUL((x), ATH_RSSI_EP_MULTIPLIER))
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@

#define ATH_DEFAULT_NOISE_FLOOR -95

#define ATH9K_RSSI_BAD 0x80

/* Register read/write primitives */
#define REG_WRITE(_ah, _reg, _val) \
ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg))
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include "ath9k.h"
#include "hw.h"

static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah,
struct ath9k_tx_queue_info *qi)
Expand Down

0 comments on commit 990b70a

Please sign in to comment.