mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
qcacmn: Configure TWT pdev count dynamically
Configure TWT pdev count based on number of active radios. Change-Id: I8b297c2f2398774a57932bd1fafc83aba2f891d2 CRs-Fixed: 2449799
This commit is contained in:
parent
23fbb8796b
commit
13d57c69d2
2 changed files with 19 additions and 0 deletions
|
|
@ -2137,5 +2137,22 @@ static inline int32_t target_psoc_get_num_hw_modes
|
|||
|
||||
return tgt_hdl->info.service_ext_param.num_hw_modes;
|
||||
}
|
||||
|
||||
#ifdef WLAN_SUPPORT_TWT
|
||||
static inline void target_if_set_twt_ap_pdev_count
|
||||
(struct tgt_info *info, struct target_psoc_info *tgt_hdl)
|
||||
{
|
||||
if (!tgt_hdl)
|
||||
return;
|
||||
|
||||
info->wlan_res_cfg.twt_ap_pdev_count =
|
||||
target_psoc_get_num_radios(tgt_hdl);
|
||||
}
|
||||
#else
|
||||
static inline void target_if_set_twt_ap_pdev_count
|
||||
(struct tgt_info *info, struct target_psoc_info *tgt_hdl)
|
||||
{
|
||||
}
|
||||
#endif /* WLAN_SUPPORT_TWT */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -288,6 +288,8 @@ static int init_deinit_service_ext_ready_event_handler(ol_scn_t scn_handle,
|
|||
|
||||
target_if_qwrap_cfg_enable(psoc, tgt_hdl, event);
|
||||
|
||||
target_if_set_twt_ap_pdev_count(info, tgt_hdl);
|
||||
|
||||
info->wlan_res_cfg.num_vdevs = (target_psoc_get_num_radios(tgt_hdl) *
|
||||
info->wlan_res_cfg.num_vdevs);
|
||||
info->wlan_res_cfg.beacon_tx_offload_max_vdev =
|
||||
|
|
|
|||
Loading…
Reference in a new issue