From 5836acff3e7653d3733c19d0867804507f950e57 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Thu, 25 Oct 2018 18:53:05 +0530 Subject: [PATCH] qcacld-3.0: Send the vdev ini params before vdev start For fw to store the dynamic config, the host needs to send the vdev params to fw before vdev start. Send the vdev ini params to the fw before vdev start. Change-Id: I83a93481bae8452eb47f9a14d1978e8d8dd02f03 CRs-Fixed: 2347498 --- core/wma/src/wma_dev_if.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index 52d97b03e89b5..8faca3ea22253 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -2776,6 +2776,13 @@ QDF_STATUS wma_vdev_start(tp_wma_handle wma, struct wma_target_req *req_msg; uint32_t chan_mode; enum phy_ch_width ch_width; + struct wlan_mlme_nss_chains *ini_cfg; + + ini_cfg = mlme_get_ini_vdev_config(iface->vdev); + if (!ini_cfg) { + wma_err("nss chain ini config NULL"); + return QDF_STATUS_E_FAILURE; + } mac_ctx = cds_get_context(QDF_MODULE_ID_PE); if (mac_ctx == NULL) { @@ -3021,6 +3028,10 @@ QDF_STATUS wma_vdev_start(tp_wma_handle wma, wma_vdev_update_pause_bitmap(params.vdev_id, 0); } + /* Send the dynamic nss chain params before vdev start to fw */ + if (wma->dynamic_nss_chains_support) + wma_vdev_nss_chain_params_send(params.vdev_id, ini_cfg); + return wma_send_vdev_start_to_fw(wma, ¶ms); }