mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
f5ecc601ca
commit
acd3a070da
2 changed files with 8 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -40,20 +40,10 @@
|
|||
#define DP_RX_TID_SAVE(_nbuf, _tid)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
||||
{
|
||||
if (vdev->opmode != wlan_op_mode_sta)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
||||
{
|
||||
return vdev->ap_bridge_enabled;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* dp_rx_dump_info_and_assert() - dump RX Ring info and Rx Desc info
|
||||
|
|
|
|||
Loading…
Reference in a new issue