• Home
  • Raw
  • Download

Lines Matching refs:mgmt

300 			const struct ieee80211_mgmt *mgmt, size_t len)  in handle_auth()  argument
315 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { in handle_auth()
321 auth_alg = le_to_host16(mgmt->u.auth.auth_alg); in handle_auth()
322 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); in handle_auth()
323 status_code = le_to_host16(mgmt->u.auth.status_code); in handle_auth()
324 fc = le_to_host16(mgmt->frame_control); in handle_auth()
326 if (len >= IEEE80211_HDRLEN + sizeof(mgmt->u.auth) + in handle_auth()
328 mgmt->u.auth.variable[0] == WLAN_EID_CHALLENGE && in handle_auth()
329 mgmt->u.auth.variable[1] == WLAN_AUTH_CHALLENGE_LEN) in handle_auth()
330 challenge = &mgmt->u.auth.variable[2]; in handle_auth()
334 MAC2STR(mgmt->sa), auth_alg, auth_transaction, in handle_auth()
365 if (os_memcmp(mgmt->sa, hapd->own_addr, ETH_ALEN) == 0) { in handle_auth()
367 MAC2STR(mgmt->sa)); in handle_auth()
372 res = hostapd_allowed_address(hapd, mgmt->sa, (u8 *) mgmt, len, in handle_auth()
379 MAC2STR(mgmt->sa)); in handle_auth()
386 MAC2STR(mgmt->sa)); in handle_auth()
393 sta = ap_sta_add(hapd, mgmt->sa); in handle_auth()
474 wpa_ft_process_auth(sta->wpa_sm, mgmt->bssid, in handle_auth()
475 auth_transaction, mgmt->u.auth.variable, in handle_auth()
477 sizeof(mgmt->u.auth), in handle_auth()
485 send_auth_reply(hapd, mgmt->sa, mgmt->bssid, auth_alg, in handle_auth()
934 const struct ieee80211_mgmt *mgmt, size_t len, in handle_assoc() argument
943 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_req) : in handle_assoc()
944 sizeof(mgmt->u.assoc_req))) { in handle_assoc()
951 capab_info = le_to_host16(mgmt->u.reassoc_req.capab_info); in handle_assoc()
953 mgmt->u.reassoc_req.listen_interval); in handle_assoc()
957 MAC2STR(mgmt->sa), capab_info, listen_interval, in handle_assoc()
958 MAC2STR(mgmt->u.reassoc_req.current_ap)); in handle_assoc()
959 left = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.reassoc_req)); in handle_assoc()
960 pos = mgmt->u.reassoc_req.variable; in handle_assoc()
962 capab_info = le_to_host16(mgmt->u.assoc_req.capab_info); in handle_assoc()
964 mgmt->u.assoc_req.listen_interval); in handle_assoc()
967 MAC2STR(mgmt->sa), capab_info, listen_interval); in handle_assoc()
968 left = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)); in handle_assoc()
969 pos = mgmt->u.assoc_req.variable; in handle_assoc()
972 sta = ap_get_sta(hapd, mgmt->sa); in handle_assoc()
978 "over-the-DS FT", MAC2STR(mgmt->sa)); in handle_assoc()
982 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_assoc()
988 send_deauth(hapd, mgmt->sa, in handle_assoc()
999 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_assoc()
1014 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_assoc()
1087 os_memcpy(sta->previous_ap, mgmt->u.reassoc_req.current_ap, in handle_assoc()
1095 os_memcpy(sta->last_assoc_req, mgmt, len); in handle_assoc()
1107 const struct ieee80211_mgmt *mgmt, size_t len) in handle_disassoc() argument
1111 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.disassoc)) { in handle_disassoc()
1118 MAC2STR(mgmt->sa), in handle_disassoc()
1119 le_to_host16(mgmt->u.disassoc.reason_code)); in handle_disassoc()
1121 sta = ap_get_sta(hapd, mgmt->sa); in handle_disassoc()
1124 "is not associated.\n", MAC2STR(mgmt->sa)); in handle_disassoc()
1150 hapd, sta, le_to_host16(mgmt->u.disassoc.reason_code)); in handle_disassoc()
1155 const struct ieee80211_mgmt *mgmt, size_t len) in handle_deauth() argument
1159 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.deauth)) { in handle_deauth()
1167 MAC2STR(mgmt->sa), le_to_host16(mgmt->u.deauth.reason_code)); in handle_deauth()
1169 sta = ap_get_sta(hapd, mgmt->sa); in handle_deauth()
1173 MAC2STR(mgmt->sa)); in handle_deauth()
1184 hapd, sta, le_to_host16(mgmt->u.deauth.reason_code)); in handle_deauth()
1192 const struct ieee80211_mgmt *mgmt, size_t len, in handle_beacon() argument
1197 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.beacon)) { in handle_beacon()
1203 (void) ieee802_11_parse_elems(mgmt->u.beacon.variable, in handle_beacon()
1205 sizeof(mgmt->u.beacon)), &elems, in handle_beacon()
1208 ap_list_process_beacon(hapd->iface, mgmt, &elems, fi); in handle_beacon()
1215 const struct ieee80211_mgmt *mgmt, in hostapd_sa_query_action() argument
1220 end = mgmt->u.action.u.sa_query_resp.trans_id + in hostapd_sa_query_action()
1222 if (((u8 *) mgmt) + len < end) { in hostapd_sa_query_action()
1228 ieee802_11_sa_query_action(hapd, mgmt->sa, in hostapd_sa_query_action()
1229 mgmt->u.action.u.sa_query_resp.action, in hostapd_sa_query_action()
1230 mgmt->u.action.u.sa_query_resp.trans_id); in hostapd_sa_query_action()
1243 const struct ieee80211_mgmt *mgmt, size_t len) in handle_action() argument
1247 sta = ap_get_sta(hapd, mgmt->sa); in handle_action()
1251 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_action()
1260 !(mgmt->frame_control & host_to_le16(WLAN_FC_ISWEP) && in handle_action()
1261 robust_action_frame(mgmt->u.action.category))) { in handle_action()
1262 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_action()
1270 switch (mgmt->u.action.category) { in handle_action()
1277 MAC2STR(mgmt->sa)); in handle_action()
1281 if (wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, in handle_action()
1289 hostapd_wmm_action(hapd, mgmt, len); in handle_action()
1293 hostapd_sa_query_action(hapd, mgmt, len); in handle_action()
1299 (u8 *) mgmt, len, in handle_action()
1307 (u8 *) mgmt, len, in handle_action()
1314 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in handle_action()
1318 mgmt->u.action.category); in handle_action()
1319 if (!(mgmt->da[0] & 0x01) && !(mgmt->u.action.category & 0x80) && in handle_action()
1320 !(mgmt->sa[0] & 0x01)) { in handle_action()
1333 os_memcpy(resp, mgmt, len); in handle_action()
1361 struct ieee80211_mgmt *mgmt; in ieee802_11_mgmt() local
1368 mgmt = (struct ieee80211_mgmt *) buf; in ieee802_11_mgmt()
1369 fc = le_to_host16(mgmt->frame_control); in ieee802_11_mgmt()
1373 handle_beacon(hapd, mgmt, len, fi); in ieee802_11_mgmt()
1377 broadcast = mgmt->bssid[0] == 0xff && mgmt->bssid[1] == 0xff && in ieee802_11_mgmt()
1378 mgmt->bssid[2] == 0xff && mgmt->bssid[3] == 0xff && in ieee802_11_mgmt()
1379 mgmt->bssid[4] == 0xff && mgmt->bssid[5] == 0xff; in ieee802_11_mgmt()
1387 os_memcmp(mgmt->bssid, hapd->own_addr, ETH_ALEN) != 0) { in ieee802_11_mgmt()
1389 MAC2STR(mgmt->bssid)); in ieee802_11_mgmt()
1395 handle_probe_req(hapd, mgmt, len); in ieee802_11_mgmt()
1399 if (os_memcmp(mgmt->da, hapd->own_addr, ETH_ALEN) != 0) { in ieee802_11_mgmt()
1400 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in ieee802_11_mgmt()
1403 MAC2STR(mgmt->da)); in ieee802_11_mgmt()
1410 handle_auth(hapd, mgmt, len); in ieee802_11_mgmt()
1414 handle_assoc(hapd, mgmt, len, 0); in ieee802_11_mgmt()
1418 handle_assoc(hapd, mgmt, len, 1); in ieee802_11_mgmt()
1422 handle_disassoc(hapd, mgmt, len); in ieee802_11_mgmt()
1426 handle_deauth(hapd, mgmt, len); in ieee802_11_mgmt()
1430 handle_action(hapd, mgmt, len); in ieee802_11_mgmt()
1433 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in ieee802_11_mgmt()
1442 const struct ieee80211_mgmt *mgmt, in handle_auth_cb() argument
1449 hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, in handle_auth_cb()
1455 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { in handle_auth_cb()
1461 auth_alg = le_to_host16(mgmt->u.auth.auth_alg); in handle_auth_cb()
1462 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); in handle_auth_cb()
1463 status_code = le_to_host16(mgmt->u.auth.status_code); in handle_auth_cb()
1465 sta = ap_get_sta(hapd, mgmt->da); in handle_auth_cb()
1468 MAC2STR(mgmt->da)); in handle_auth_cb()
1483 const struct ieee80211_mgmt *mgmt, in handle_assoc_cb() argument
1492 hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, in handle_assoc_cb()
1498 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_resp) : in handle_assoc_cb()
1499 sizeof(mgmt->u.assoc_resp))) { in handle_assoc_cb()
1506 status = le_to_host16(mgmt->u.reassoc_resp.status_code); in handle_assoc_cb()
1508 status = le_to_host16(mgmt->u.assoc_resp.status_code); in handle_assoc_cb()
1510 sta = ap_get_sta(hapd, mgmt->da); in handle_assoc_cb()
1513 MAC2STR(mgmt->da)); in handle_assoc_cb()
1614 const struct ieee80211_mgmt *mgmt, in handle_deauth_cb() argument
1618 if (mgmt->da[0] & 0x01) in handle_deauth_cb()
1620 sta = ap_get_sta(hapd, mgmt->da); in handle_deauth_cb()
1623 " not found", MAC2STR(mgmt->da)); in handle_deauth_cb()
1638 const struct ieee80211_mgmt *mgmt, in handle_disassoc_cb() argument
1642 if (mgmt->da[0] & 0x01) in handle_disassoc_cb()
1644 sta = ap_get_sta(hapd, mgmt->da); in handle_disassoc_cb()
1647 " not found", MAC2STR(mgmt->da)); in handle_disassoc_cb()
1673 const struct ieee80211_mgmt *mgmt; in ieee802_11_mgmt_cb() local
1674 mgmt = (const struct ieee80211_mgmt *) buf; in ieee802_11_mgmt_cb()
1679 handle_auth_cb(hapd, mgmt, len, ok); in ieee802_11_mgmt_cb()
1683 handle_assoc_cb(hapd, mgmt, len, 0, ok); in ieee802_11_mgmt_cb()
1687 handle_assoc_cb(hapd, mgmt, len, 1, ok); in ieee802_11_mgmt_cb()
1694 handle_deauth_cb(hapd, mgmt, len, ok); in ieee802_11_mgmt_cb()
1698 handle_disassoc_cb(hapd, mgmt, len, ok); in ieee802_11_mgmt_cb()