Home | History | Annotate | Download | only in ap

Lines Matching refs:mgmt

440 			    const struct ieee80211_mgmt *mgmt, size_t len,
461 resp = sae_parse_commit(sta->sae, mgmt->u.auth.variable,
462 ((const u8 *) mgmt) + len -
463 mgmt->u.auth.variable, &token,
499 if (sae_check_confirm(sta->sae, mgmt->u.auth.variable,
500 ((u8 *) mgmt) + len -
501 mgmt->u.auth.variable) < 0) {
528 send_auth_reply(hapd, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE,
538 const struct ieee80211_mgmt *mgmt, size_t len)
554 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) {
565 MAC2STR(mgmt->sa));
570 auth_alg = le_to_host16(mgmt->u.auth.auth_alg);
571 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction);
572 status_code = le_to_host16(mgmt->u.auth.status_code);
573 fc = le_to_host16(mgmt->frame_control);
575 if (len >= IEEE80211_HDRLEN + sizeof(mgmt->u.auth) +
577 mgmt->u.auth.variable[0] == WLAN_EID_CHALLENGE &&
578 mgmt->u.auth.variable[1] == WLAN_AUTH_CHALLENGE_LEN)
579 challenge = &mgmt->u.auth.variable[2];
583 MAC2STR(mgmt->sa), auth_alg, auth_transaction,
618 if (os_memcmp(mgmt->sa, hapd->own_addr, ETH_ALEN) == 0) {
620 MAC2STR(mgmt->sa));
625 mgmt->sa, (u8 *) mgmt, len,
632 MAC2STR(mgmt->sa));
639 MAC2STR(mgmt->sa));
646 sta = ap_sta_add(hapd, mgmt->sa);
729 wpa_ft_process_auth(sta->wpa_sm, mgmt->bssid,
730 auth_transaction, mgmt->u.auth.variable,
732 sizeof(mgmt->u.auth),
739 handle_auth_sae(hapd, sta, mgmt, len, auth_transaction);
749 send_auth_reply(hapd, mgmt->sa, mgmt->bssid, auth_alg,
1227 const struct ieee80211_mgmt *mgmt, size_t len,
1236 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_req) :
1237 sizeof(mgmt->u.assoc_req))) {
1249 MACSTR, MAC2STR(mgmt->sa));
1257 MACSTR, MAC2STR(mgmt->sa));
1264 capab_info = le_to_host16(mgmt->u.reassoc_req.capab_info);
1266 mgmt->u.reassoc_req.listen_interval);
1270 MAC2STR(mgmt->sa), capab_info, listen_interval,
1271 MAC2STR(mgmt->u.reassoc_req.current_ap));
1272 left = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.reassoc_req));
1273 pos = mgmt->u.reassoc_req.variable;
1275 capab_info = le_to_host16(mgmt->u.assoc_req.capab_info);
1277 mgmt->u.assoc_req.listen_interval);
1280 MAC2STR(mgmt->sa), capab_info, listen_interval);
1281 left = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req));
1282 pos = mgmt->u.assoc_req.variable;
1285 sta = ap_get_sta(hapd, mgmt->sa);
1291 "over-the-DS FT", MAC2STR(mgmt->sa));
1295 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1301 send_deauth(hapd, mgmt->sa,
1312 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1327 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1400 os_memcpy(sta->previous_ap, mgmt->u.reassoc_req.current_ap,
1408 os_memcpy(sta->last_assoc_req, mgmt, len);
1420 const struct ieee80211_mgmt *mgmt, size_t len)
1424 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.disassoc)) {
1431 MAC2STR(mgmt->sa),
1432 le_to_host16(mgmt->u.disassoc.reason_code));
1434 sta = ap_get_sta(hapd, mgmt->sa);
1437 "is not associated.\n", MAC2STR(mgmt->sa));
1463 hapd, sta, le_to_host16(mgmt->u.disassoc.reason_code));
1468 const struct ieee80211_mgmt *mgmt, size_t len)
1472 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.deauth)) {
1480 MAC2STR(mgmt->sa), le_to_host16(mgmt->u.deauth.reason_code));
1482 sta = ap_get_sta(hapd, mgmt->sa);
1486 MAC2STR(mgmt->sa));
1497 hapd, sta, le_to_host16(mgmt->u.deauth.reason_code));
1505 const struct ieee80211_mgmt *mgmt, size_t len,
1510 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.beacon)) {
1516 (void) ieee802_11_parse_elems(mgmt->u.beacon.variable,
1518 sizeof(mgmt->u.beacon)), &elems,
1521 ap_list_process_beacon(hapd->iface, mgmt, &elems, fi);
1528 const struct ieee80211_mgmt *mgmt,
1533 end = mgmt->u.action.u.sa_query_resp.trans_id +
1535 if (((u8 *) mgmt) + len < end) {
1541 ieee802_11_sa_query_action(hapd, mgmt->sa,
1542 mgmt->u.action.u.sa_query_resp.action,
1543 mgmt->u.action.u.sa_query_resp.trans_id);
1557 const struct ieee80211_mgmt *mgmt,
1564 action.da = mgmt->da;
1565 action.sa = mgmt->sa;
1566 action.bssid = mgmt->bssid;
1567 action.category = mgmt->u.action.category;
1568 action.data = (const u8 *) &mgmt->u.action.u.wnm_sleep_req.action;
1577 const struct ieee80211_mgmt *mgmt, size_t len)
1580 sta = ap_get_sta(hapd, mgmt->sa);
1583 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1590 if (mgmt->u.action.category != WLAN_ACTION_PUBLIC &&
1594 MAC2STR(mgmt->sa), mgmt->u.action.category);
1600 !(mgmt->frame_control & host_to_le16(WLAN_FC_ISWEP) &&
1601 robust_action_frame(mgmt->u.action.category))) {
1602 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1610 switch (mgmt->u.action.category) {
1613 if (wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action,
1619 hostapd_wmm_action(hapd, mgmt, len);
1623 hostapd_sa_query_action(hapd, mgmt, len);
1628 hostapd_wnm_action(hapd, sta, mgmt, len);
1634 (u8 *) mgmt, len,
1639 (u8 *) mgmt, len,
1648 (u8 *) mgmt, len,
1655 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1659 mgmt->u.action.category);
1660 if (!(mgmt->da[0] & 0x01) && !(mgmt->u.action.category & 0x80) &&
1661 !(mgmt->sa[0] & 0x01)) {
1674 os_memcpy(resp, mgmt, len);
1705 struct ieee80211_mgmt *mgmt;
1712 mgmt = (struct ieee80211_mgmt *) buf;
1713 fc = le_to_host16(mgmt->frame_control);
1717 handle_beacon(hapd, mgmt, len, fi);
1721 broadcast = mgmt->bssid[0] == 0xff && mgmt->bssid[1] == 0xff &&
1722 mgmt->bssid[2] == 0xff && mgmt->bssid[3] == 0xff &&
1723 mgmt->bssid[4] == 0xff && mgmt->bssid[5] == 0xff;
1731 os_memcmp(mgmt->bssid, hapd->own_addr, ETH_ALEN) != 0) {
1732 printf("MGMT: BSSID=" MACSTR " not our address\n",
1733 MAC2STR(mgmt->bssid));
1739 handle_probe_req(hapd, mgmt, len, fi->ssi_signal);
1743 if (os_memcmp(mgmt->da, hapd->own_addr, ETH_ALEN) != 0) {
1744 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1746 "MGMT: DA=" MACSTR " not our address",
1747 MAC2STR(mgmt->da));
1753 wpa_printf(MSG_DEBUG, "mgmt::auth");
1754 handle_auth(hapd, mgmt, len);
1757 wpa_printf(MSG_DEBUG, "mgmt::assoc_req");
1758 handle_assoc(hapd, mgmt, len, 0);
1761 wpa_printf(MSG_DEBUG, "mgmt::reassoc_req");
1762 handle_assoc(hapd, mgmt, len, 1);
1765 wpa_printf(MSG_DEBUG, "mgmt::disassoc");
1766 handle_disassoc(hapd, mgmt, len);
1769 wpa_msg(hapd->msg_ctx, MSG_DEBUG, "mgmt::deauth");
1770 handle_deauth(hapd, mgmt, len);
1773 wpa_printf(MSG_DEBUG, "mgmt::action");
1774 handle_action(hapd, mgmt, len);
1777 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
1779 "unknown mgmt frame subtype %d", stype);
1786 const struct ieee80211_mgmt *mgmt,
1793 hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211,
1799 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) {
1805 auth_alg = le_to_host16(mgmt->u.auth.auth_alg);
1806 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction);
1807 status_code = le_to_host16(mgmt->u.auth.status_code);
1809 sta = ap_get_sta(hapd, mgmt->da);
1812 MAC2STR(mgmt->da));
1851 const struct ieee80211_mgmt *mgmt,
1860 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_resp) :
1861 sizeof(mgmt->u.assoc_resp))) {
1867 sta = ap_get_sta(hapd, mgmt->da);
1870 MAC2STR(mgmt->da));
1875 hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211,
1883 status = le_to_host16(mgmt->u.reassoc_resp.status_code);
1885 status = le_to_host16(mgmt->u.assoc_resp.status_code);
1996 const struct ieee80211_mgmt *mgmt,
2000 if (mgmt->da[0] & 0x01)
2002 sta = ap_get_sta(hapd, mgmt->da);
2005 " not found", MAC2STR(mgmt->da));
2020 const struct ieee80211_mgmt *mgmt,
2024 if (mgmt->da[0] & 0x01)
2026 sta = ap_get_sta(hapd, mgmt->da);
2029 " not found", MAC2STR(mgmt->da));
2055 const struct ieee80211_mgmt *mgmt;
2056 mgmt = (const struct ieee80211_mgmt *) buf;
2060 wpa_printf(MSG_DEBUG, "mgmt::auth cb");
2061 handle_auth_cb(hapd, mgmt, len, ok);
2064 wpa_printf(MSG_DEBUG, "mgmt::assoc_resp cb");
2065 handle_assoc_cb(hapd, mgmt, len, 0, ok);
2068 wpa_printf(MSG_DEBUG, "mgmt::reassoc_resp cb");
2069 handle_assoc_cb(hapd, mgmt, len, 1, ok);
2072 wpa_printf(MSG_EXCESSIVE, "mgmt::proberesp cb");
2075 wpa_printf(MSG_DEBUG, "mgmt::deauth cb");
2076 handle_deauth_cb(hapd, mgmt, len, ok);
2079 wpa_printf(MSG_DEBUG, "mgmt::disassoc cb");
2080 handle_disassoc_cb(hapd, mgmt, len, ok);
2083 wpa_printf(MSG_DEBUG, "mgmt::action cb");
2086 printf("unknown mgmt cb frame subtype %d\n", stype);