Parcourir la source

qcacld-3.0: Fix issue that Wifihal set multi sta APIs not work

In hdd_set_primary_interface:
1. When dual sta doesn't exist, just set primary_vdev_id,  and return
SUCCESS, and don't config anything for dual sta.
2. If dual sta are not in MCC, don't send duty cycle percentage, return
SUCCESS.

Change-Id: Ib72033cf7d656e56c400759a7c5da13bf8d1377b
CRs-Fixed: 3009079
Jianmin Zhu il y a 3 ans
Parent
commit
337664979a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      core/hdd/src/wlan_hdd_cfg80211.c

+ 2 - 2
core/hdd/src/wlan_hdd_cfg80211.c

@@ -8546,7 +8546,7 @@ static int hdd_set_primary_interface(struct hdd_adapter *adapter,
 
 	if (count != 2) {
 		hdd_debug("STA + STA concurrency not present, count:%d", count);
-		return -EINVAL;
+		return 0;
 	}
 
 	/* if dual sta roaming enabled and both sta in DBS then no need
@@ -8574,7 +8574,7 @@ static int hdd_set_primary_interface(struct hdd_adapter *adapter,
 	 */
 	if (!policy_mgr_current_concurrency_is_mcc(hdd_ctx->psoc)) {
 		hdd_debug("STA + STA concurrency not in MCC");
-		return -EINVAL;
+		return 0;
 	}
 
 	status = ucfg_mlme_get_dual_sta_policy(hdd_ctx->psoc, &dual_sta_policy);