|
@@ -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)
|
|
static inline void clear_bss_descriptor (struct bss_descriptor * bss)
|
|
{
|
|
{
|
|
/* Don't blow away ->list, just BSS data */
|
|
/* Don't blow away ->list, just BSS data */
|