32 #ifndef B43legacy_MAIN_H_
33 #define B43legacy_MAIN_H_
38 #define P4D_BYT3S(magic, nr_bytes) u8 __p4dding##magic[nr_bytes]
39 #define P4D_BYTES(line, nr_bytes) P4D_BYT3S(line, nr_bytes)
41 #define PAD_BYTES(nr_bytes) P4D_BYTES(__LINE__ , (nr_bytes))
46 u8 b43legacy_freq_to_channel_bg(
int freq)
53 channel = (freq - 2407) / 5;
61 return b43legacy_freq_to_channel_bg(freq);
66 int b43legacy_channel_to_freq_bg(
u8 channel)
82 return b43legacy_channel_to_freq_bg(channel);
86 int b43legacy_is_cck_rate(
int rate)
95 int b43legacy_is_ofdm_rate(
int rate)
97 return !b43legacy_is_cck_rate(rate);