qcacmn: enable DP AP Bridge when SAP mode turned on

Enable DP AP Bridge when SAP mode turned on, CONFIG_MCL cleanup.

Change-Id: I96fa3c263064fe4e438c98246d02dbc50437984b
This commit is contained in:
Vevek Venkatesan
2019-06-25 19:01:19 +05:30
committed by nshrivas
parent f5ecc601ca
commit acd3a070da
2 changed files with 8 additions and 10 deletions

View File

@@ -4684,6 +4684,14 @@ static struct cdp_vdev *dp_vdev_attach_wifi3(struct cdp_pdev *txrx_pdev,
qdf_spin_unlock_bh(&pdev->vdev_list_lock);
pdev->vdev_count++;
if (wlan_op_mode_sta != vdev->opmode)
vdev->ap_bridge_enabled = true;
else
vdev->ap_bridge_enabled = false;
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
"%s: wlan_cfg_ap_bridge_enabled %d",
__func__, vdev->ap_bridge_enabled);
dp_tx_vdev_attach(vdev);
if (pdev->vdev_count == 1)