drivers: Use unsigned arguments for sta_set_flags()

Since BIT() is now returning unsigned int, these functions need to match
that to avoid compiler warnings.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-07-07 12:33:38 +03:00
parent 32d6463fe7
commit f97e3ce473
5 changed files with 11 additions and 6 deletions

View file

@ -2349,7 +2349,8 @@ struct wpa_driver_ops {
* Returns: 0 on success, -1 on failure
*/
int (*sta_set_flags)(void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and);
unsigned int total_flags, unsigned int flags_or,
unsigned int flags_and);
/**
* set_tx_queue_params - Set TX queue parameters

View file

@ -430,7 +430,8 @@ atheros_set_sta_authorized(void *priv, const u8 *addr, int authorized)
static int
atheros_sta_set_flags(void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and)
unsigned int total_flags, unsigned int flags_or,
unsigned int flags_and)
{
/* For now, only support setting Authorized flag */
if (flags_or & WPA_STA_AUTHORIZED)

View file

@ -894,7 +894,8 @@ bsd_commit(void *priv)
static int
bsd_set_sta_authorized(void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and)
unsigned int total_flags, unsigned int flags_or,
unsigned int flags_and)
{
int authorized = -1;

View file

@ -329,7 +329,8 @@ static int hostap_send_eapol(void *priv, const u8 *addr, const u8 *data,
static int hostap_sta_set_flags(void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and)
unsigned int total_flags, unsigned int flags_or,
unsigned int flags_and)
{
struct hostap_driver_data *drv = priv;
struct prism2_hostapd_param param;

View file

@ -4249,8 +4249,9 @@ static int wpa_driver_nl80211_hapd_send_eapol(
static int wpa_driver_nl80211_sta_set_flags(void *priv, const u8 *addr,
int total_flags,
int flags_or, int flags_and)
unsigned int total_flags,
unsigned int flags_or,
unsigned int flags_and)
{
struct i802_bss *bss = priv;
struct nl_msg *msg;