Make hostapd_drv_send_mlme() more generic
Merge hostapd_drv_send_mlme_csa() functionality into hostapd_drv_send_mlme() to get a single driver ops handler function for hostapd. In addition, add a new no_encrypt parameter in preparation for functionality that is needed to get rid of the separate send_frame() driver op. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b3525dc172
commit
3710027463
10 changed files with 26 additions and 33 deletions
|
@ -349,7 +349,7 @@ static int send_auth_reply(struct hostapd_data *hapd,
|
|||
" auth_alg=%d auth_transaction=%d resp=%d (IE len=%lu) (dbg=%s)",
|
||||
MAC2STR(dst), auth_alg, auth_transaction,
|
||||
resp, (unsigned long) ies_len, dbg);
|
||||
if (hostapd_drv_send_mlme(hapd, reply, rlen, 0) < 0)
|
||||
if (hostapd_drv_send_mlme(hapd, reply, rlen, 0, NULL, 0, 0) < 0)
|
||||
wpa_printf(MSG_INFO, "send_auth_reply: send failed");
|
||||
else
|
||||
reply_res = WLAN_STATUS_SUCCESS;
|
||||
|
@ -3462,7 +3462,7 @@ static void send_deauth(struct hostapd_data *hapd, const u8 *addr,
|
|||
send_len = IEEE80211_HDRLEN + sizeof(reply.u.deauth);
|
||||
reply.u.deauth.reason_code = host_to_le16(reason_code);
|
||||
|
||||
if (hostapd_drv_send_mlme(hapd, &reply, send_len, 0) < 0)
|
||||
if (hostapd_drv_send_mlme(hapd, &reply, send_len, 0, NULL, 0, 0) < 0)
|
||||
wpa_printf(MSG_INFO, "Failed to send deauth: %s",
|
||||
strerror(errno));
|
||||
}
|
||||
|
@ -3848,7 +3848,7 @@ static u16 send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta,
|
|||
}
|
||||
#endif /* CONFIG_FILS */
|
||||
|
||||
if (hostapd_drv_send_mlme(hapd, reply, send_len, 0) < 0) {
|
||||
if (hostapd_drv_send_mlme(hapd, reply, send_len, 0, NULL, 0, 0) < 0) {
|
||||
wpa_printf(MSG_INFO, "Failed to send assoc resp: %s",
|
||||
strerror(errno));
|
||||
res = WLAN_STATUS_UNSPECIFIED_FAILURE;
|
||||
|
@ -4678,7 +4678,7 @@ static int handle_action(struct hostapd_data *hapd,
|
|||
os_memcpy(resp->bssid, hapd->own_addr, ETH_ALEN);
|
||||
resp->u.action.category |= 0x80;
|
||||
|
||||
if (hostapd_drv_send_mlme(hapd, resp, len, 0) < 0) {
|
||||
if (hostapd_drv_send_mlme(hapd, resp, len, 0, NULL, 0, 0) < 0) {
|
||||
wpa_printf(MSG_ERROR, "IEEE 802.11: Failed to send "
|
||||
"Action frame");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue