Browse Source

qcacld-3.0: Support MCC user quota only for P2P-GO

Honor the MCC user quota setting for P2P-GO interface only.

Change-Id: If8421c2e1ce89347cf4d09f333cb9d0528f85326
CRs-Fixed: 3160553
Madhvapathi Sriram 3 years ago
parent
commit
ca8b19870a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_mcc_quota.c

+ 5 - 0
core/hdd/src/wlan_hdd_mcc_quota.c

@@ -193,6 +193,11 @@ int wlan_hdd_cfg80211_set_mcc_quota(struct wiphy *wiphy,
 		return -EINVAL;
 	}
 
+	if (mcc_quota.op_mode != QDF_P2P_GO_MODE) {
+		hdd_debug("Support only P2P GO mode now");
+		return -EOPNOTSUPP;
+	}
+
 	ucfg_mlme_set_user_mcc_quota(psoc, &mcc_quota);
 
 	duty_cycle = ucfg_mlme_get_user_mcc_quota_percentage(psoc);