Преглед изворни кода

qcacld-3.0: Set target config for peer map v2

The peer map v2 set in the target resource config
is sent to FW via WMI INIT CMD.

This configuration will enable index based AST
search in WDS mode.

CRs-Fixed: 2951231
Change-Id: If1c47c710832ddd46d99bffc66fc09e4fe76eab1
Subrat Dash пре 3 година
родитељ
комит
7b3d485441
1 измењених фајлова са 21 додато и 0 уклоњено
  1. 21 0
      core/wma/src/wma_main.c

+ 21 - 0
core/wma/src/wma_main.c

@@ -275,6 +275,26 @@ static void wma_update_num_peers_tids(t_wma_handle *wma_handle,
 						 tgt_cfg->num_vdevs);
 }
 
+#ifdef FEATURE_WDS
+/**
+ * wma_set_peer_map_unmap_v2_config() - Update peer_map_unmap_v2
+ * @tgt_cfg: Resource config given to target
+ *
+ * This function enables Peer map/unmap v2 feature.
+ *
+ * Return: none
+ */
+static void wma_set_peer_map_unmap_v2_config(target_resource_config *tgt_cfg)
+{
+	tgt_cfg->peer_map_unmap_v2 = true;
+}
+#else
+static void wma_set_peer_map_unmap_v2_config(target_resource_config *tgt_cfg)
+{
+	tgt_cfg->peer_map_unmap_v2 = false;
+}
+#endif
+
 /**
  * wma_set_default_tgt_config() - set default tgt config
  * @wma_handle: wma handle
@@ -365,6 +385,7 @@ static void wma_set_default_tgt_config(tp_wma_handle wma_handle,
 				     &tgt_cfg->max_ndp_sessions);
 
 	wma_set_ipa_disable_config(tgt_cfg);
+	wma_set_peer_map_unmap_v2_config(tgt_cfg);
 }
 
 /**