diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-09-19 13:10:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:21 -0400 |
commit | 05155c83d13b983ac2c5691575fd471543df31fe (patch) | |
tree | e5bd845ab62aef2cdb9fcbf84b25718d455f17b4 /drivers/net/wireless/b43/main.h | |
parent | 6b9bafec6608539d07f7ccdeefe121dabe06604f (diff) |
[B43]: Change loglevel of radio-enable message.
Also cleanup the code a bit and remove the inline.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43/main.h')
-rw-r--r-- | drivers/net/wireless/b43/main.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/b43/main.h b/drivers/net/wireless/b43/main.h index bd8fcf72dc5d..284d17da17d1 100644 --- a/drivers/net/wireless/b43/main.h +++ b/drivers/net/wireless/b43/main.h | |||
@@ -96,23 +96,6 @@ static inline int b43_is_ofdm_rate(int rate) | |||
96 | return !b43_is_cck_rate(rate); | 96 | return !b43_is_cck_rate(rate); |
97 | } | 97 | } |
98 | 98 | ||
99 | static inline int b43_is_hw_radio_enabled(struct b43_wldev *dev) | ||
100 | { | ||
101 | /* function to return state of hardware enable of radio | ||
102 | * returns 0 if radio disabled, 1 if radio enabled | ||
103 | */ | ||
104 | struct b43_phy *phy = &dev->phy; | ||
105 | |||
106 | if (phy->rev >= 3) | ||
107 | return ((b43_read32(dev, B43_MMIO_RADIO_HWENABLED_HI) | ||
108 | & B43_MMIO_RADIO_HWENABLED_HI_MASK) | ||
109 | == 0) ? 1 : 0; | ||
110 | else | ||
111 | return ((b43_read16(dev, B43_MMIO_RADIO_HWENABLED_LO) | ||
112 | & B43_MMIO_RADIO_HWENABLED_LO_MASK) | ||
113 | == 0) ? 0 : 1; | ||
114 | } | ||
115 | |||
116 | void b43_tsf_read(struct b43_wldev *dev, u64 * tsf); | 99 | void b43_tsf_read(struct b43_wldev *dev, u64 * tsf); |
117 | void b43_tsf_write(struct b43_wldev *dev, u64 tsf); | 100 | void b43_tsf_write(struct b43_wldev *dev, u64 tsf); |
118 | 101 | ||