Skip to content

Commit 4230c9e

Browse files
kapbhbjarki-andreasen
authored andcommitted
[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]> (cherry picked from commit 288fcb5)
1 parent 8e75ae4 commit 4230c9e

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)