aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-14 02:55:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:30 -0400
commit990b70ab24cbce585a3436c8c88cb48b888d48b4 (patch)
tree6e34b6473f304e6e477390b5ee37b3f17ea65547 /drivers
parentcfe8cba982cda73d4970dab712411bebdcc3b9cd (diff)
ath9k: move ATH9K_RSSI_BAD to hw.h
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/Makefile7
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h1
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/Makefile b/drivers/net/wireless/ath/ath9k/Makefile
index f85dc8235774..2f21c67d86c8 100644
--- a/drivers/net/wireless/ath/ath9k/Makefile
+++ b/drivers/net/wireless/ath/ath9k/Makefile
@@ -1,6 +1,4 @@
1ATH9K_HW_FIX += eeprom.o \ 1ATH9K_HW_FIX += eeprom.o
2 mac.o \
3
4ATH9K_HW += hw.o \ 2ATH9K_HW += hw.o \
5 eeprom_def.o \ 3 eeprom_def.o \
6 eeprom_4k.o \ 4 eeprom_4k.o \
@@ -8,7 +6,8 @@ ATH9K_HW += hw.o \
8 calib.o \ 6 calib.o \
9 ani.o \ 7 ani.o \
10 phy.o \ 8 phy.o \
11 btcoex.o 9 btcoex.o \
10 mac.o \
12 11
13ath9k-y += $(ATH9K_HW) \ 12ath9k-y += $(ATH9K_HW) \
14 $(ATH9K_HW_FIX) \ 13 $(ATH9K_HW_FIX) \
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 9aff11da3796..8768e603eb72 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -288,7 +288,6 @@ struct ath_tx_control {
288 288
289#define ATH_RSSI_LPF_LEN 10 289#define ATH_RSSI_LPF_LEN 10
290#define RSSI_LPF_THRESHOLD -20 290#define RSSI_LPF_THRESHOLD -20
291#define ATH9K_RSSI_BAD 0x80
292#define ATH_RSSI_EP_MULTIPLIER (1<<7) 291#define ATH_RSSI_EP_MULTIPLIER (1<<7)
293#define ATH_EP_MUL(x, mul) ((x) * (mul)) 292#define ATH_EP_MUL(x, mul) ((x) * (mul))
294#define ATH_RSSI_IN(x) (ATH_EP_MUL((x), ATH_RSSI_EP_MULTIPLIER)) 293#define ATH_RSSI_IN(x) (ATH_EP_MUL((x), ATH_RSSI_EP_MULTIPLIER))
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 874fb11cbac2..d854c17b8688 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -55,6 +55,8 @@
55 55
56#define ATH_DEFAULT_NOISE_FLOOR -95 56#define ATH_DEFAULT_NOISE_FLOOR -95
57 57
58#define ATH9K_RSSI_BAD 0x80
59
58/* Register read/write primitives */ 60/* Register read/write primitives */
59#define REG_WRITE(_ah, _reg, _val) \ 61#define REG_WRITE(_ah, _reg, _val) \
60 ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg)) 62 ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg))
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index 1796ac773f91..3be658d42a53 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17#include "ath9k.h" 17#include "hw.h"
18 18
19static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, 19static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah,
20 struct ath9k_tx_queue_info *qi) 20 struct ath9k_tx_queue_info *qi)