From c908ada056e5fc7892c83bfc45d88e0210af7b1f Mon Sep 17 00:00:00 2001 From: jiad Date: Fri, 11 May 2018 14:40:54 +0800 Subject: [PATCH] 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 --- components/ipa/core/src/wlan_ipa_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c index b88f6d2faea32..a0affaa6e98b3 100644 --- a/components/ipa/core/src/wlan_ipa_core.c +++ b/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. * 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); return 0; }