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
This commit is contained in:
jiad 2018-05-11 14:40:54 +08:00 committed by nshrivas
parent ff843ff442
commit c908ada056

View File

@ -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;
}