aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/main.h')
-rw-r--r--drivers/net/wireless/b43/main.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/net/wireless/b43/main.h b/drivers/net/wireless/b43/main.h
index abac25ee958d..f476fc337d64 100644
--- a/drivers/net/wireless/b43/main.h
+++ b/drivers/net/wireless/b43/main.h
@@ -58,41 +58,6 @@ enum b43_verbosity {
58#endif 58#endif
59}; 59};
60 60
61
62/* Lightweight function to convert a frequency (in Mhz) to a channel number. */
63static inline u8 b43_freq_to_channel_5ghz(int freq)
64{
65 return ((freq - 5000) / 5);
66}
67static inline u8 b43_freq_to_channel_2ghz(int freq)
68{
69 u8 channel;
70
71 if (freq == 2484)
72 channel = 14;
73 else
74 channel = (freq - 2407) / 5;
75
76 return channel;
77}
78
79/* Lightweight function to convert a channel number to a frequency (in Mhz). */
80static inline int b43_channel_to_freq_5ghz(u8 channel)
81{
82 return (5000 + (5 * channel));
83}
84static inline int b43_channel_to_freq_2ghz(u8 channel)
85{
86 int freq;
87
88 if (channel == 14)
89 freq = 2484;
90 else
91 freq = 2407 + (5 * channel);
92
93 return freq;
94}
95
96static inline int b43_is_cck_rate(int rate) 61static inline int b43_is_cck_rate(int rate)
97{ 62{
98 return (rate == B43_CCK_RATE_1MB || 63 return (rate == B43_CCK_RATE_1MB ||