qcacmn: User MCC quota setting

Make MCC quota limits configurable

Change-Id: I61a0b8124ab193f8d2c05ec36f0e97c85a1df774
CRs-Fixed: 3106155
This commit is contained in:
Madhvapathi Sriram
2021-12-09 15:41:20 +05:30
committed by Madan Koyyalamudi
parent d6beb68484
commit 4cbd31b6b4
2 changed files with 8 additions and 2 deletions

View File

@@ -56,8 +56,13 @@
#define WMI_SIZE_UTC_TIME (10) #define WMI_SIZE_UTC_TIME (10)
/* The size of the utc time error in bytes. */ /* The size of the utc time error in bytes. */
#define WMI_SIZE_UTC_TIME_ERROR (5) #define WMI_SIZE_UTC_TIME_ERROR (5)
#ifdef WLAN_MCC_MIN_CHANNEL_QUOTA
#define WMI_MCC_MIN_CHANNEL_QUOTA WLAN_MCC_MIN_CHANNEL_QUOTA
#define WMI_MCC_MAX_CHANNEL_QUOTA (100 - WLAN_MCC_MIN_CHANNEL_QUOTA)
#else
#define WMI_MCC_MIN_CHANNEL_QUOTA 20 #define WMI_MCC_MIN_CHANNEL_QUOTA 20
#define WMI_MCC_MAX_CHANNEL_QUOTA 80 #define WMI_MCC_MAX_CHANNEL_QUOTA 80
#endif
#define WMI_MCC_MIN_NON_ZERO_CHANNEL_LATENCY 30 #define WMI_MCC_MIN_NON_ZERO_CHANNEL_LATENCY 30
#ifdef WMI_AP_SUPPORT #ifdef WMI_AP_SUPPORT

View File

@@ -182,8 +182,9 @@ static QDF_STATUS send_set_mcc_channel_time_quota_cmd_tlv(
*/ */
if (quota_chan1 < WMI_MCC_MIN_CHANNEL_QUOTA || if (quota_chan1 < WMI_MCC_MIN_CHANNEL_QUOTA ||
quota_chan1 > WMI_MCC_MAX_CHANNEL_QUOTA) { quota_chan1 > WMI_MCC_MAX_CHANNEL_QUOTA) {
wmi_err("Invalid time quota for Channel #1=%dms. Minimum " wmi_err("Invalid time quota for Chan #1=%dms. Min: %dms, Max: %dms",
"is 20ms & maximum is 80ms", quota_chan1); quota_chan1, WMI_MCC_MIN_CHANNEL_QUOTA,
WMI_MCC_MAX_CHANNEL_QUOTA);
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }
/* Set WMI CMD for channel time quota here */ /* Set WMI CMD for channel time quota here */