diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 69f94c92b32..37b9684bf29 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -73,6 +73,23 @@ static const u8 bcastmac[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; | |||
73 | /* */ | 73 | /* */ |
74 | /*********************************************************************/ | 74 | /*********************************************************************/ |
75 | 75 | ||
76 | /** | ||
77 | * @brief Unsets the MSB on basic rates | ||
78 | * | ||
79 | * Scan through an array and unset the MSB for basic data rates. | ||
80 | * | ||
81 | * @param rates buffer of data rates | ||
82 | * @param len size of buffer | ||
83 | */ | ||
84 | static void lbs_unset_basic_rate_flags(u8 *rates, size_t len) | ||
85 | { | ||
86 | int i; | ||
87 | |||
88 | for (i = 0; i < len; i++) | ||
89 | rates[i] &= 0x7f; | ||
90 | } | ||
91 | |||
92 | |||
76 | static inline void clear_bss_descriptor (struct bss_descriptor * bss) | 93 | static inline void clear_bss_descriptor (struct bss_descriptor * bss) |
77 | { | 94 | { |
78 | /* Don't blow away ->list, just BSS data */ | 95 | /* Don't blow away ->list, just BSS data */ |