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. Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
This commit is contained in:
parent
78ee0f0c23
commit
951a321c89
1 changed files with 4 additions and 0 deletions
|
@ -396,6 +396,10 @@ void nrf_wifi_wpa_supp_event_proc_deauth(void *if_priv,
|
|||
event.deauth_info.ie_len = (frame + frame_len - mgmt->u.deauth.variable);
|
||||
}
|
||||
|
||||
if (!(deauth->valid_fields & NRF_WIFI_EVENT_MLME_RXDEAUTH_FROM_AP)) {
|
||||
event.deauth_info.locally_generated = 1;
|
||||
}
|
||||
|
||||
if (vif_ctx_zep->supp_drv_if_ctx && vif_ctx_zep->supp_callbk_fns.deauth) {
|
||||
vif_ctx_zep->supp_callbk_fns.deauth(vif_ctx_zep->supp_drv_if_ctx,
|
||||
&event, mgmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue