libertas: make lbs_unset_basic_rate_flags() static
PATCH 1/1 libertas: make lbs_unset_basic_rate_flags() static
... by moving it into the file where it's sole user resides
Signed-off-by Holger Schurig <[email protected]>
drivers/net/wireless/libertas/join.c +0 -17
@@ -99,23 +99,6 @@ static void lbs_set_basic_rate_flags(u8 }/** -* @brief Unsets the MSB on basic rates -* -* Scan through an array and unset the MSB for basic data rates. -* -* @param rates buffer of data rates -* @param len size of buffer -*/ -void lbs_unset_basic_rate_flags (u8 *rates,size_t len) -{ -int i; - -for (i =0 ; i < len; i++) - rates[i] &=0x7f ; -} - - -/** * @brief Associate to a specific BSS discovered in a scan * * @param priv A pointer to struct lbs_private structure
drivers/net/wireless/libertas/join.h +0 -2
@@ -48,6 +48,4 @@ int lbs_send_deauthentication(struct lbsint lbs_associate (struct lbs_private *priv,struct assoc_request *assoc_req); -void lbs_unset_basic_rate_flags (u8 *rates,size_t len); -#endif
drivers/net/wireless/libertas/scan.c +17 -0
@@ -73,6 +73,23 @@ static const u8 bcastmac[ETH_ALEN] = { 0/* */ /*********************************************************************/ +/** +* @brief Unsets the MSB on basic rates +* +* Scan through an array and unset the MSB for basic data rates. +* +* @param rates buffer of data rates +* @param len size of buffer +*/ +static void lbs_unset_basic_rate_flags (u8 *rates,size_t len) +{ +int i; + +for (i =0 ; i < len; i++) + rates[i] &=0x7f ; +} + +static inline void clear_bss_descriptor (struct bss_descriptor * bss) {/* Don't blow away ->list, just BSS data */
Quoted 3 lines · Holger Schurig
... by moving it into the file where it's sole user resides
Signed-off-by Holger Schurig <[email protected]>
Acked-by Dan Williams <[email protected]>
Quoted 67 lines
Index:
wireless-2.6/drivers/net/wireless/libertas/join.c
===================================================================drivers/net/wireless/libertas/join.c +0
-17@@ -99,23 +99,6 @@ static void lbs_set_basic_rate_flags(u8 }/** -* @brief Unsets the MSB on basic rates -* -* Scan through an array and unset the MSB for basic data rates. -* -* @param rates buffer of data rates -* @param len size of buffer -*/ -void lbs_unset_basic_rate_flags (u8 *rates,size_t len) -{ -int i; - -for (i =0 ; i < len; i++) - rates[i] &=0x7f ; -} - - -/** * @brief Associate to a specific BSS discovered in a scan * * @param priv A pointer to struct lbs_private structure Index:
wireless-2.6/drivers/net/wireless/libertas/join.h
===================================================================drivers/net/wireless/libertas/join.h +0
-2@@ -48,6 +48,4 @@ int lbs_send_deauthentication(struct lbsint lbs_associate (struct lbs_private *priv,struct assoc_request *assoc_req); -void lbs_unset_basic_rate_flags (u8 *rates,size_t len); -#endif Index:
wireless-2.6/drivers/net/wireless/libertas/scan.c
===================================================================drivers/net/wireless/libertas/scan.c +17
-0@@ -73,6 +73,23 @@ static const u8 bcastmac[ETH_ALEN] = { 0/* */ /*********************************************************************/ +/** +* @brief Unsets the MSB on basic rates +* +* Scan through an array and unset the MSB for basic data rates. +* +* @param rates buffer of data rates +* @param len size of buffer +*/ +static void lbs_unset_basic_rate_flags (u8 *rates,size_t len) +{ +int i; + +for (i =0 ; i < len; i++) + rates[i] &=0x7f ; +} + +static inline void clear_bss_descriptor (struct bss_descriptor * bss) {/* Don't blow away ->list, just BSS data */