]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
drivers: Use unsigned arguments for sta_set_flags()
authorJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 09:33:38 +0000 (12:33 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 13:25:06 +0000 (16:25 +0300)
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>
src/drivers/driver.h
src/drivers/driver_atheros.c
src/drivers/driver_bsd.c
src/drivers/driver_hostap.c
src/drivers/driver_nl80211.c

index d452d8cab1445cf2ef8892819863ce78a179a587..7c8bca2e5ef0dde8278a78b1db980f87a4695d03 100644 (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
index b721c3239d04bcc798e8e8326f5d7dabec1bbdcb..13df149b3ca716f58dde2a9b03561bdb757b8034 100644 (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)
index 9ac87b4a324483c81d07df9f497028e80f64306d..bab1f031d24cdaa141457ebca99986ae447e39c2 100644 (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;
 
index 88350052a6b2463fe0957a57ec07b1168bc6a594..ff16d675007646d9c0af1577e3a6549d1aeaba30 100644 (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;
index f74422baea9672421409a599cbb65844b8c1168f..da03e5062af5f779f2933cd7f137349c0a8d6a5c 100644 (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;