Skip to content

Commit

Permalink
drivers: wifi: Write BSS max idle time to UMAC
Browse files Browse the repository at this point in the history
Write BSS max idle time to UMAC in the association request.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
  • Loading branch information
rado17 authored and nordicjm committed Jul 13, 2023
1 parent 2dcad9d commit f5d3adb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ struct nrf_wifi_umac_assoc_info {
signed char control_port;
unsigned int prev_bssid_flag;
unsigned char prev_bssid[NRF_WIFI_ETH_ADDR_LEN];
unsigned short bss_max_idle_time;
} __NRF_WIFI_PKD;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,10 @@ enum wifi_nrf_status wifi_nrf_fmac_assoc(void *dev_ctx,
connect_common_info->nrf_wifi_flags |= NRF_WIFI_CONNECT_COMMON_INFO_PREV_BSSID;
}

if (assoc_info->bss_max_idle_time) {
connect_common_info->maxidle_insec = assoc_info->bss_max_idle_time;
}

status = umac_cmd_cfg(fmac_dev_ctx,
assoc_cmd,
sizeof(*assoc_cmd));
Expand Down
4 changes: 4 additions & 0 deletions drivers/wifi/nrf700x/zephyr/src/zephyr_wpa_supp_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ int wifi_nrf_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_param
assoc_info.use_mfp = NRF_WIFI_MFP_REQUIRED;
}

if (params->bss_max_idle_period) {
assoc_info.bss_max_idle_time = params->bss_max_idle_period;
}

status = wifi_nrf_fmac_assoc(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, &assoc_info);

if (status != WIFI_NRF_STATUS_SUCCESS) {
Expand Down

0 comments on commit f5d3adb

Please sign in to comment.