diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_paprd.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c index 69f779237d28..4c744793b4b6 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c | |||
@@ -50,11 +50,6 @@ static int ar9003_get_training_power_2g(struct ath_hw *ah) | |||
50 | return power; | 50 | return power; |
51 | } | 51 | } |
52 | 52 | ||
53 | static int get_streams(int mask) | ||
54 | { | ||
55 | return !!(mask & BIT(0)) + !!(mask & BIT(1)) + !!(mask & BIT(2)); | ||
56 | } | ||
57 | |||
58 | static int ar9003_get_training_power_5g(struct ath_hw *ah) | 53 | static int ar9003_get_training_power_5g(struct ath_hw *ah) |
59 | { | 54 | { |
60 | struct ath_common *common = ath9k_hw_common(ah); | 55 | struct ath_common *common = ath9k_hw_common(ah); |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 97f22c428603..fb64ab841dc1 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -868,6 +868,11 @@ static inline struct ath_hw_ops *ath9k_hw_ops(struct ath_hw *ah) | |||
868 | return &ah->ops; | 868 | return &ah->ops; |
869 | } | 869 | } |
870 | 870 | ||
871 | static inline u8 get_streams(int mask) | ||
872 | { | ||
873 | return !!(mask & BIT(0)) + !!(mask & BIT(1)) + !!(mask & BIT(2)); | ||
874 | } | ||
875 | |||
871 | /* Initialization, Detach, Reset */ | 876 | /* Initialization, Detach, Reset */ |
872 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); | 877 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); |
873 | void ath9k_hw_deinit(struct ath_hw *ah); | 878 | void ath9k_hw_deinit(struct ath_hw *ah); |