瀏覽代碼

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
Vevek Venkatesan 5 年之前
父節點
當前提交
acd3a070da
共有 2 個文件被更改,包括 8 次插入10 次删除
  1. 8 0
      dp/wifi3.0/dp_main.c
  2. 0 10
      dp/wifi3.0/dp_rx.c

+ 8 - 0
dp/wifi3.0/dp_main.c

@@ -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)

+ 0 - 10
dp/wifi3.0/dp_rx.c

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