]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostap: Fix send_mlme() after 'freq' parameter addition
authorDan Williams <dcbw@redhat.com>
Tue, 7 Jul 2015 15:49:54 +0000 (10:49 -0500)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 16:40:49 +0000 (19:40 +0300)
This fixes the incomplete driver_hostap.c change from commit
5d180a77392690b141d95609d8c8692317712b4f ('drivers: Add freq parameter
to send_mlme() function') that did not take into account the internal
callers.

Signed-off-by: Dan Williams <dcbw@redhat.com>
src/drivers/driver_hostap.c

index ff16d675007646d9c0af1577e3a6549d1aeaba30..c948338fdb8cd0aebae2023e2c85fa66d4beab5b 100644 (file)
@@ -316,7 +316,7 @@ static int hostap_send_eapol(void *priv, const u8 *addr, const u8 *data,
        pos += 2;
        memcpy(pos, data, data_len);
 
-       res = hostap_send_mlme(drv, (u8 *) hdr, len, 0);
+       res = hostap_send_mlme(drv, (u8 *) hdr, len, 0, 0);
        if (res < 0) {
                wpa_printf(MSG_ERROR, "hostap_send_eapol - packet len: %lu - "
                           "failed: %d (%s)",
@@ -1054,7 +1054,7 @@ static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
        memcpy(mgmt.bssid, own_addr, ETH_ALEN);
        mgmt.u.deauth.reason_code = host_to_le16(reason);
        return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN +
-                               sizeof(mgmt.u.deauth), 0);
+                               sizeof(mgmt.u.deauth), 0, 0);
 }
 
 
@@ -1092,7 +1092,7 @@ static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr,
        memcpy(mgmt.bssid, own_addr, ETH_ALEN);
        mgmt.u.disassoc.reason_code = host_to_le16(reason);
        return  hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN +
-                                sizeof(mgmt.u.disassoc), 0);
+                                sizeof(mgmt.u.disassoc), 0, 0);
 }
 
 
@@ -1170,7 +1170,7 @@ static void wpa_driver_hostap_poll_client(void *priv, const u8 *own_addr,
        os_memcpy(hdr.IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN);
        os_memcpy(hdr.IEEE80211_SA_FROMDS, own_addr, ETH_ALEN);
 
-       hostap_send_mlme(priv, (u8 *)&hdr, sizeof(hdr), 0);
+       hostap_send_mlme(priv, (u8 *)&hdr, sizeof(hdr), 0, 0);
 }