|
@@ -211,8 +211,8 @@ void ieee802_11_send_deauth(struct hostapd_data *hapd, const u8 *addr,
|
|
|
os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
|
|
|
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)
|
|
|
+ if (hapd->drv.send_mgmt_frame(hapd, &mgmt, IEEE80211_HDRLEN +
|
|
|
+ sizeof(mgmt.u.deauth)) < 0)
|
|
|
perror("ieee802_11_send_deauth: send");
|
|
|
}
|
|
|
|
|
@@ -308,7 +308,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)
|
|
|
+ if (hapd->drv.send_mgmt_frame(hapd, reply, rlen) < 0)
|
|
|
perror("send_auth_reply: send");
|
|
|
|
|
|
os_free(buf);
|
|
@@ -816,7 +816,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_send_mgmt_frame(hapd, &reply, send_len) < 0)
|
|
|
+ if (hapd->drv.send_mgmt_frame(hapd, &reply, send_len) < 0)
|
|
|
wpa_printf(MSG_INFO, "Failed to send deauth: %s",
|
|
|
strerror(errno));
|
|
|
}
|
|
@@ -877,7 +877,7 @@ static void send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
|
|
send_len += p - reply->u.assoc_resp.variable;
|
|
|
|
|
|
- if (hostapd_send_mgmt_frame(hapd, reply, send_len) < 0)
|
|
|
+ if (hapd->drv.send_mgmt_frame(hapd, reply, send_len) < 0)
|
|
|
wpa_printf(MSG_INFO, "Failed to send assoc resp: %s",
|
|
|
strerror(errno));
|
|
|
}
|
|
@@ -1187,7 +1187,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)
|
|
|
+ if (hapd->drv.send_mgmt_frame(hapd, &mgmt, end - (u8 *) &mgmt) < 0)
|
|
|
perror("ieee802_11_send_sa_query_req: send");
|
|
|
}
|
|
|
|
|
@@ -1337,7 +1337,7 @@ static void handle_action(struct hostapd_data *hapd,
|
|
|
os_memcpy(resp->bssid, hapd->own_addr, ETH_ALEN);
|
|
|
resp->u.action.category |= 0x80;
|
|
|
|
|
|
- hostapd_send_mgmt_frame(hapd, resp, len);
|
|
|
+ hapd->drv.send_mgmt_frame(hapd, resp, len);
|
|
|
os_free(resp);
|
|
|
}
|
|
|
}
|