mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacld-3.0: Add policy_mgr_is_hw_dbs_required_for_band API
policy_mgr_is_hw_dbs_required_for_band is for any HW where PHYA/MAC0 doesn't support the given band. We need to switch to DBS mode to support the band. So far we have overloaded policy_mgr_is_hw_dbs_2x2_capable to achieve above. Need a cleaner API to work in a generic way (for 2x2, 1x1 or any chain mask configuration). Change-Id: I1cb28bece1242fc749a0a6a56fadca0502850c43 CRs-Fixed: 2565939
This commit is contained in:
parent
4bcc0a7891
commit
897b439b3c
8 changed files with 97 additions and 19 deletions
|
|
@ -988,6 +988,8 @@ tdls_process_decrement_active_session(struct wlan_objmgr_psoc *psoc)
|
|||
if (!psoc)
|
||||
return QDF_STATUS_E_NULL_VALUE;
|
||||
if(!policy_mgr_is_hw_dbs_2x2_capable(psoc) &&
|
||||
!policy_mgr_is_hw_dbs_required_for_band(
|
||||
psoc, HW_MODE_MAC_BAND_2G) &&
|
||||
policy_mgr_is_current_hwmode_dbs(psoc)) {
|
||||
tdls_err("Current HW mode is 1*1 DBS. Wait for Opportunistic timer to expire to enable TDLS in FW");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue