|
@@ -278,18 +278,21 @@ static void wma_update_num_peers_tids(t_wma_handle *wma_handle,
|
|
|
#ifdef FEATURE_WDS
|
|
|
/**
|
|
|
* wma_set_peer_map_unmap_v2_config() - Update peer_map_unmap_v2
|
|
|
+ * @psoc: Object manager psoc
|
|
|
* @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)
|
|
|
+static void wma_set_peer_map_unmap_v2_config(struct wlan_objmgr_psoc *psoc,
|
|
|
+ target_resource_config *tgt_cfg)
|
|
|
{
|
|
|
- tgt_cfg->peer_map_unmap_v2 = true;
|
|
|
+ tgt_cfg->peer_map_unmap_v2 = cfg_get(psoc, CFG_WDS_MODE) ? true : false;
|
|
|
}
|
|
|
#else
|
|
|
-static void wma_set_peer_map_unmap_v2_config(target_resource_config *tgt_cfg)
|
|
|
+static void wma_set_peer_map_unmap_v2_config(struct wlan_objmgr_psoc *psoc,
|
|
|
+ target_resource_config *tgt_cfg)
|
|
|
{
|
|
|
tgt_cfg->peer_map_unmap_v2 = false;
|
|
|
}
|
|
@@ -385,7 +388,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);
|
|
|
+ wma_set_peer_map_unmap_v2_config(wma_handle->psoc, tgt_cfg);
|
|
|
}
|
|
|
|
|
|
/**
|