Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89835
b: refs/heads/master
c: 23ff503
h: refs/heads/master
i:
  89833: b2d5f01
  89831: 7d24628
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Feb 29, 2008
1 parent aa26bbd commit 04c5e5a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e226868ec3f3f98544ed2e6e7af7b6b8a629f492
refs/heads/master: 23ff50361f23355334bffe33de84f0b52aa34b9d
17 changes: 0 additions & 17 deletions trunk/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 trunk/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 trunk/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 04c5e5a

Please sign in to comment.