瀏覽代碼

qcacld-3.0: Fix IPA AP-AP interface setup failure

IPA component needs to discard repetitive start_bss event in
case SAP is on DFS channel. Issue is we checked against
available SAP interface and this will lead to second SAP
interface setup failure.

Fix is to check against same SAP interface to see if it has
already been setup.

Change-Id: I2fc3656f5e1fba39dba14dba137c6202c5ec5af0
CRs-Fixed: 2240368
jiad 7 年之前
父節點
當前提交
c908ada056
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      components/ipa/core/src/wlan_ipa_core.c

+ 2 - 1
components/ipa/core/src/wlan_ipa_core.c

@@ -1424,7 +1424,8 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
 		 * RADAR detection and chosen channel may not be a DFS channels.
 		 * RADAR detection and chosen channel may not be a DFS channels.
 		 * So dont return error here. Just discard the event.
 		 * So dont return error here. Just discard the event.
 		 */
 		 */
-		if (wlan_ipa_get_iface(ipa_ctx, QDF_SAP_MODE)) {
+		if (ipa_ctx->vdev_to_iface[session_id] !=
+				WLAN_IPA_MAX_SESSION) {
 			qdf_mutex_release(&ipa_ctx->event_lock);
 			qdf_mutex_release(&ipa_ctx->event_lock);
 			return 0;
 			return 0;
 		}
 		}