Skip to content

Commit

Permalink
libertas: make lbs_unset_basic_rate_flags() static
Browse files Browse the repository at this point in the history
... by moving it into the file where it's sole user resides

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and John W. Linville committed Feb 29, 2008
1 parent e226868 commit 23ff503
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
17 changes: 0 additions & 17 deletions drivers/net/wireless/libertas/join.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,6 @@ static void lbs_set_basic_rate_flags(u8 *rates, size_t len)
}
}

/**
* @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
*
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wireless/libertas/join.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@ int lbs_send_deauthentication(struct lbs_private *priv);

int lbs_associate(struct lbs_private *priv, struct assoc_request *assoc_req);

void lbs_unset_basic_rate_flags(u8 *rates, size_t len);

#endif
17 changes: 17 additions & 0 deletions drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ static const u8 bcastmac[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
/* */
/*********************************************************************/

/**
* @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 */
Expand Down

0 comments on commit 23ff503

Please sign in to comment.