Lines Matching refs:mgmt
266 const struct ieee80211_mgmt *mgmt = NULL; in nrf_wifi_wpa_supp_event_proc_auth_resp() local
274 mgmt = (const struct ieee80211_mgmt *)frame; in nrf_wifi_wpa_supp_event_proc_auth_resp()
282 if (frame_len < 24 + sizeof(mgmt->u.auth)) { in nrf_wifi_wpa_supp_event_proc_auth_resp()
289 memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in nrf_wifi_wpa_supp_event_proc_auth_resp()
291 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in nrf_wifi_wpa_supp_event_proc_auth_resp()
293 event.auth.auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); in nrf_wifi_wpa_supp_event_proc_auth_resp()
295 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in nrf_wifi_wpa_supp_event_proc_auth_resp()
297 if (frame_len > 24 + sizeof(mgmt->u.auth)) { in nrf_wifi_wpa_supp_event_proc_auth_resp()
298 event.auth.ies = mgmt->u.auth.variable; in nrf_wifi_wpa_supp_event_proc_auth_resp()
299 event.auth.ies_len = (frame_len - 24 - sizeof(mgmt->u.auth)); in nrf_wifi_wpa_supp_event_proc_auth_resp()
313 const struct ieee80211_mgmt *mgmt = NULL; in nrf_wifi_wpa_supp_event_proc_assoc_resp() local
322 mgmt = (const struct ieee80211_mgmt *)frame; in nrf_wifi_wpa_supp_event_proc_assoc_resp()
324 if (frame_len < 24 + sizeof(mgmt->u.assoc_resp)) { in nrf_wifi_wpa_supp_event_proc_assoc_resp()
331 status = le_to_host16(mgmt->u.assoc_resp.status_code); in nrf_wifi_wpa_supp_event_proc_assoc_resp()
334 event.assoc_reject.bssid = mgmt->bssid; in nrf_wifi_wpa_supp_event_proc_assoc_resp()
336 if (frame_len > 24 + sizeof(mgmt->u.assoc_resp)) { in nrf_wifi_wpa_supp_event_proc_assoc_resp()
337 event.assoc_reject.resp_ies = (unsigned char *)mgmt->u.assoc_resp.variable; in nrf_wifi_wpa_supp_event_proc_assoc_resp()
339 (frame_len - 24 - sizeof(mgmt->u.assoc_resp)); in nrf_wifi_wpa_supp_event_proc_assoc_resp()
344 event.assoc_info.addr = mgmt->bssid; in nrf_wifi_wpa_supp_event_proc_assoc_resp()
349 if (frame_len > 24 + sizeof(mgmt->u.assoc_resp)) { in nrf_wifi_wpa_supp_event_proc_assoc_resp()
350 event.assoc_info.resp_ies = (unsigned char *)mgmt->u.assoc_resp.variable; in nrf_wifi_wpa_supp_event_proc_assoc_resp()
352 (frame_len - 24 - sizeof(mgmt->u.assoc_resp)); in nrf_wifi_wpa_supp_event_proc_assoc_resp()
375 const struct ieee80211_mgmt *mgmt = NULL; in nrf_wifi_wpa_supp_event_proc_deauth() local
383 mgmt = (const struct ieee80211_mgmt *)frame; in nrf_wifi_wpa_supp_event_proc_deauth()
385 if (frame_len < 24 + sizeof(mgmt->u.deauth)) { in nrf_wifi_wpa_supp_event_proc_deauth()
392 event.deauth_info.addr = &mgmt->sa[0]; in nrf_wifi_wpa_supp_event_proc_deauth()
393 event.deauth_info.reason_code = le_to_host16(mgmt->u.deauth.reason_code); in nrf_wifi_wpa_supp_event_proc_deauth()
394 if (frame + frame_len > mgmt->u.deauth.variable) { in nrf_wifi_wpa_supp_event_proc_deauth()
395 event.deauth_info.ie = mgmt->u.deauth.variable; in nrf_wifi_wpa_supp_event_proc_deauth()
396 event.deauth_info.ie_len = (frame + frame_len - mgmt->u.deauth.variable); in nrf_wifi_wpa_supp_event_proc_deauth()
401 &event, mgmt); in nrf_wifi_wpa_supp_event_proc_deauth()
411 const struct ieee80211_mgmt *mgmt = NULL; in nrf_wifi_wpa_supp_event_proc_disassoc() local
419 mgmt = (const struct ieee80211_mgmt *)frame; in nrf_wifi_wpa_supp_event_proc_disassoc()
421 if (frame_len < 24 + sizeof(mgmt->u.disassoc)) { in nrf_wifi_wpa_supp_event_proc_disassoc()
428 event.disassoc_info.addr = &mgmt->sa[0]; in nrf_wifi_wpa_supp_event_proc_disassoc()
429 event.disassoc_info.reason_code = le_to_host16(mgmt->u.disassoc.reason_code); in nrf_wifi_wpa_supp_event_proc_disassoc()
430 if (frame + frame_len > mgmt->u.disassoc.variable) { in nrf_wifi_wpa_supp_event_proc_disassoc()
431 event.disassoc_info.ie = mgmt->u.disassoc.variable; in nrf_wifi_wpa_supp_event_proc_disassoc()
432 event.disassoc_info.ie_len = (frame + frame_len - mgmt->u.disassoc.variable); in nrf_wifi_wpa_supp_event_proc_disassoc()
1342 const struct ieee80211_mgmt *mgmt = NULL; in nrf_wifi_wpa_supp_event_proc_unprot_mgmt() local
1352 mgmt = (const struct ieee80211_mgmt *)frame; in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()
1355 if (frame_len < 24 + sizeof(mgmt->u.deauth)) { in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()
1362 event.unprot_deauth.sa = &mgmt->sa[0]; in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()
1363 event.unprot_deauth.da = &mgmt->da[0]; in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()
1366 event.unprot_deauth.reason_code = le_to_host16(mgmt->u.deauth.reason_code); in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()
1372 event.unprot_disassoc.reason_code = le_to_host16(mgmt->u.deauth.reason_code); in nrf_wifi_wpa_supp_event_proc_unprot_mgmt()