diff options
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/beacon.c | 2 | ||||
-rw-r--r-- | hostapd/driver_i.h | 5 | ||||
-rw-r--r-- | hostapd/hostapd.c | 2 | ||||
-rw-r--r-- | hostapd/ieee802_11.c | 10 | ||||
-rw-r--r-- | hostapd/sta_info.c | 2 | ||||
-rw-r--r-- | hostapd/wme.c | 2 |
6 files changed, 11 insertions, 12 deletions
diff --git a/hostapd/beacon.c b/hostapd/beacon.c index 2e0d3e3..1df8752 100644 --- a/hostapd/beacon.c +++ b/hostapd/beacon.c @@ -312,7 +312,7 @@ void handle_probe_req(struct hostapd_data *hapd, struct ieee80211_mgmt *mgmt, } #endif /* CONFIG_WPS */ - if (hostapd_send_mgmt_frame(hapd, resp, pos - (u8 *) resp, 0) < 0) + if (hostapd_send_mgmt_frame(hapd, resp, pos - (u8 *) resp) < 0) perror("handle_probe_req: send"); os_free(resp); diff --git a/hostapd/driver_i.h b/hostapd/driver_i.h index 81be227..170c3b3 100644 --- a/hostapd/driver_i.h +++ b/hostapd/driver_i.h @@ -175,12 +175,11 @@ hostapd_set_ssid(struct hostapd_data *hapd, const u8 *buf, size_t len) } static inline int -hostapd_send_mgmt_frame(struct hostapd_data *hapd, const void *msg, size_t len, - int flags) +hostapd_send_mgmt_frame(struct hostapd_data *hapd, const void *msg, size_t len) { if (hapd->driver == NULL || hapd->driver->send_mgmt_frame == NULL) return 0; - return hapd->driver->send_mgmt_frame(hapd->drv_priv, msg, len, flags); + return hapd->driver->send_mgmt_frame(hapd->drv_priv, msg, len); } static inline int diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c index 0ed72f8..2f5a888 100644 --- a/hostapd/hostapd.c +++ b/hostapd/hostapd.c @@ -816,7 +816,7 @@ static int hostapd_wpa_auth_send_ft_action(void *ctx, const u8 *dst, os_memcpy(m->bssid, hapd->own_addr, ETH_ALEN); os_memcpy(&m->u, data, data_len); - res = hostapd_send_mgmt_frame(hapd, (u8 *) m, mlen, 0); + res = hostapd_send_mgmt_frame(hapd, (u8 *) m, mlen); os_free(m); return res; } diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c index 759d9ff..f60c72d 100644 --- a/hostapd/ieee802_11.c +++ b/hostapd/ieee802_11.c @@ -357,7 +357,7 @@ void ieee802_11_send_deauth(struct hostapd_data *hapd, u8 *addr, u16 reason) os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); mgmt.u.deauth.reason_code = host_to_le16(reason); if (hostapd_send_mgmt_frame(hapd, &mgmt, IEEE80211_HDRLEN + - sizeof(mgmt.u.deauth), 0) < 0) + sizeof(mgmt.u.deauth)) < 0) perror("ieee802_11_send_deauth: send"); } @@ -452,7 +452,7 @@ static void send_auth_reply(struct hostapd_data *hapd, " auth_alg=%d auth_transaction=%d resp=%d (IE len=%lu)", MAC2STR(dst), auth_alg, auth_transaction, resp, (unsigned long) ies_len); - if (hostapd_send_mgmt_frame(hapd, reply, rlen, 0) < 0) + if (hostapd_send_mgmt_frame(hapd, reply, rlen) < 0) perror("send_auth_reply: send"); os_free(buf); @@ -1170,7 +1170,7 @@ static void handle_assoc(struct hostapd_data *hapd, send_len += p - reply->u.assoc_resp.variable; } - if (hostapd_send_mgmt_frame(hapd, reply, send_len, 0) < 0) + if (hostapd_send_mgmt_frame(hapd, reply, send_len) < 0) perror("handle_assoc: send"); } @@ -1298,7 +1298,7 @@ void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, os_memcpy(mgmt.u.action.u.sa_query_req.trans_id, trans_id, WLAN_SA_QUERY_TR_ID_LEN); end = mgmt.u.action.u.sa_query_req.trans_id + WLAN_SA_QUERY_TR_ID_LEN; - if (hostapd_send_mgmt_frame(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0) + if (hostapd_send_mgmt_frame(hapd, &mgmt, end - (u8 *) &mgmt) < 0) perror("ieee802_11_send_sa_query_req: send"); } @@ -1416,7 +1416,7 @@ static void handle_action(struct hostapd_data *hapd, os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); mgmt->u.action.category |= 0x80; - hostapd_send_mgmt_frame(hapd, mgmt, len, 0); + hostapd_send_mgmt_frame(hapd, mgmt, len); } } diff --git a/hostapd/sta_info.c b/hostapd/sta_info.c index cbf556c..7a22e92 100644 --- a/hostapd/sta_info.c +++ b/hostapd/sta_info.c @@ -314,7 +314,7 @@ void ap_handle_timer(void *eloop_ctx, void *timeout_ctx) ETH_ALEN); os_memcpy(hdr.IEEE80211_SA_FROMDS, hapd->own_addr, ETH_ALEN); - if (hostapd_send_mgmt_frame(hapd, &hdr, sizeof(hdr), 0) < 0) + if (hostapd_send_mgmt_frame(hapd, &hdr, sizeof(hdr)) < 0) perror("ap_handle_timer: send"); #endif /* CONFIG_NATIVE_WINDOWS */ } else if (sta->timeout_next != STA_REMOVE) { diff --git a/hostapd/wme.c b/hostapd/wme.c index 7f92a0a..efcbe37 100644 --- a/hostapd/wme.c +++ b/hostapd/wme.c @@ -160,7 +160,7 @@ static void wmm_send_action(struct hostapd_data *hapd, const u8 *addr, os_memcpy(t, tspec, sizeof(struct wmm_tspec_element)); len = ((u8 *) (t + 1)) - buf; - if (hostapd_send_mgmt_frame(hapd, m, len, 0) < 0) + if (hostapd_send_mgmt_frame(hapd, m, len) < 0) perror("wmm_send_action: send"); } |