diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/join.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/join.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 17 |
3 files changed, 17 insertions, 19 deletions
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c index a0a060939322..56e64a697c37 100644 --- a/drivers/net/wireless/libertas/join.c +++ b/drivers/net/wireless/libertas/join.c | |||
@@ -99,23 +99,6 @@ static void lbs_set_basic_rate_flags(u8 *rates, size_t len) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * @brief Unsets the MSB on basic rates | ||
103 | * | ||
104 | * Scan through an array and unset the MSB for basic data rates. | ||
105 | * | ||
106 | * @param rates buffer of data rates | ||
107 | * @param len size of buffer | ||
108 | */ | ||
109 | void lbs_unset_basic_rate_flags(u8 *rates, size_t len) | ||
110 | { | ||
111 | int i; | ||
112 | |||
113 | for (i = 0; i < len; i++) | ||
114 | rates[i] &= 0x7f; | ||
115 | } | ||
116 | |||
117 | |||
118 | /** | ||
119 | * @brief Associate to a specific BSS discovered in a scan | 102 | * @brief Associate to a specific BSS discovered in a scan |
120 | * | 103 | * |
121 | * @param priv A pointer to struct lbs_private structure | 104 | * @param priv A pointer to struct lbs_private structure |
diff --git a/drivers/net/wireless/libertas/join.h b/drivers/net/wireless/libertas/join.h index c617d071f781..792c64fe3514 100644 --- a/drivers/net/wireless/libertas/join.h +++ b/drivers/net/wireless/libertas/join.h | |||
@@ -48,6 +48,4 @@ int lbs_send_deauthentication(struct lbs_private *priv); | |||
48 | 48 | ||
49 | int lbs_associate(struct lbs_private *priv, struct assoc_request *assoc_req); | 49 | int lbs_associate(struct lbs_private *priv, struct assoc_request *assoc_req); |
50 | 50 | ||
51 | void lbs_unset_basic_rate_flags(u8 *rates, size_t len); | ||
52 | |||
53 | #endif | 51 | #endif |
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 69f94c92b32d..37b9684bf29c 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 */ |