Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23ff5036 authored by Holger Schurig's avatar Holger Schurig Committed by John W. Linville
Browse files

libertas: make lbs_unset_basic_rate_flags() static



... by moving it into the file where it's sole user resides

Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e226868e
Loading
Loading
Loading
Loading
+0 −17
Original line number Original line Diff line number Diff line
@@ -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
 *  @brief Associate to a specific BSS discovered in a scan
 *
 *
+0 −2
Original line number Original line Diff line number Diff line
@@ -48,6 +48,4 @@ int lbs_send_deauthentication(struct lbs_private *priv);


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


void lbs_unset_basic_rate_flags(u8 *rates, size_t len);

#endif
#endif
+17 −0
Original line number Original line Diff line number Diff line
@@ -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 */