qcacld-3.0: Set time quota for 2 MCC vdevs/adapters

If STA + STA connected in MCC, FW should distribute
the duty cycle between primary and secondary connection
in 70:30 ratio.

Quota for the 2nd role is calculated as 100 - quota of
first mode.

Change-Id: I36ab9a9717da1e1f0ff0e0e11a18681c97ed6c58
CRs-Fixed: 2927460
This commit is contained in:
abhinav kumar
2021-04-07 18:05:44 +05:30
committed by Madan Koyyalamudi
parent 09474f3886
commit 7e315ca4af
8 changed files with 255 additions and 11 deletions

View File

@@ -280,6 +280,16 @@ QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
QDF_STATUS wlan_mlme_set_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
uint8_t dual_sta_config);
/**
* wlan_mlme_get_dual_sta_policy() - Get the dual sta policy
* @psoc: pointer to psoc object
* @dual_sta_config: Value to be set from the caller
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_get_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
uint8_t *dual_sta_config);
/**
* wlan_mlme_get_prevent_link_down() - Get the prevent link down config
* @psoc: pointer to psoc object
@@ -1067,6 +1077,27 @@ QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
QDF_STATUS wlan_mlme_set_primary_interface(struct wlan_objmgr_psoc *psoc,
uint8_t value);
/**
* wlan_mlme_set_default_primary_iface() - Set the default primary iface id
* for driver
* @psoc: pointer to psoc object
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_set_default_primary_iface(struct wlan_objmgr_psoc *psoc);
/**
* wlan_mlme_get_mcc_duty_cycle_percentage() - Get primary STA iface duty
* cycle percentage
* @psoc: pointer to psoc object
* @value: value that needs to be set from the caller
*
* API to get the MCC duty cycle for primary and secondary STA's
*
* Return: primary iface quota on success
*/
int wlan_mlme_get_mcc_duty_cycle_percentage(struct wlan_objmgr_pdev *pdev);
/**
* wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
* of UAPSD auto trigger