Skip to content

Commit b6afc3c

Browse files
committed
[nrf fromlist] drivers: nrf_wifi: Add locally generated info
Add locally generated info for deauth process. If deauthentication frame is coming from AP it will be set, in other cases (Beacon loss, New connection from user in connected state, disconnection from user) flag will not be set. Upstream PR #: 88489 Signed-off-by: Kapil Bhatt <[email protected]>
1 parent f656080 commit b6afc3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/wifi/nrf_wifi/src/wpa_supp_if.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ void nrf_wifi_wpa_supp_event_proc_deauth(void *if_priv,
396396
event.deauth_info.ie_len = (frame + frame_len - mgmt->u.deauth.variable);
397397
}
398398

399+
if (!(deauth->valid_fields & NRF_WIFI_EVENT_MLME_RXDEAUTH_FROM_AP)) {
400+
event.deauth_info.locally_generated = 1;
401+
}
402+
399403
if (vif_ctx_zep->supp_drv_if_ctx && vif_ctx_zep->supp_callbk_fns.deauth) {
400404
vif_ctx_zep->supp_callbk_fns.deauth(vif_ctx_zep->supp_drv_if_ctx,
401405
&event, mgmt);

0 commit comments

Comments
 (0)