qcacmn: populate num_max_active_vdev in WMI init

Set num_max_active_vdevs to WMI init command and
extract it from WMI ready event.

Change-Id: I6d6377c03214fcab74c675839f136301ebf27834
CRs-Fixed: 3183010
This commit is contained in:
Liangwei Dong
2022-04-26 16:28:17 +08:00
committed by Madan Koyyalamudi
parent e8e9381db1
commit 28ceb47c1d
3 changed files with 19 additions and 0 deletions

View File

@@ -762,6 +762,17 @@ static int init_deinit_ready_event_handler(ol_scn_t scn_handle,
else
info->wlan_res_cfg.agile_capability = ready_ev.agile_capability;
if (ready_ev.num_max_active_vdevs) {
if (ready_ev.num_max_active_vdevs <
info->wlan_res_cfg.num_max_active_vdevs) {
target_if_err("unexpected num_max_active_vdevs fw %d host %d",
ready_ev.num_max_active_vdevs,
info->wlan_res_cfg.num_max_active_vdevs);
info->wlan_res_cfg.num_max_active_vdevs =
ready_ev.num_max_active_vdevs;
}
}
/* Indicate to the waiting thread that the ready
* event was received
*/