qcacld-3.0: Fill vdev mlme bss channel for all vdev mode

In vdev start response handler, if vdev start success, copy
desire channel to bss channel for all mode: STA, AP, IBSS etc.

Change-Id: Ie0767952bc3831235adcece5ba59ad0f32ee76fe
CRs-Fixed: 2640898
This commit is contained in:
Jianmin Zhu 2020-03-13 13:18:07 +08:00 • committed by nshrivas
commit 4116e09ba4

View file

@ -1233,6 +1233,12 @@ QDF_STATUS wma_vdev_start_resp_handler(struct vdev_mlme_obj *vdev_mlme,
if (wma_is_vdev_in_ap_mode(wma, rsp->vdev_id))
tgt_dfs_radar_enable(wma->pdev, 0, 0, true);
iface = &wma->interfaces[rsp->vdev_id];
if (!iface->vdev) {
wma_err("Invalid vdev");
return QDF_STATUS_E_FAILURE;
}
if (rsp->status == QDF_STATUS_SUCCESS) {
wma->interfaces[rsp->vdev_id].tx_streams =
rsp->cfgd_tx_streams;
@ -1256,9 +1262,13 @@ QDF_STATUS wma_vdev_start_resp_handler(struct vdev_mlme_obj *vdev_mlme,
rsp->cfgd_rx_streams,
rsp->chain_mask,
wma->interfaces[rsp->vdev_id].mac_id);
/* Fill bss_chan after vdev start */
qdf_mem_copy(iface->vdev->vdev_mlme.bss_chan,
iface->vdev->vdev_mlme.des_chan,
sizeof(struct wlan_channel));
}
iface = &wma->interfaces[rsp->vdev_id];
if (wma_is_vdev_in_ap_mode(wma, rsp->vdev_id)) {
wma_dcs_clear_vdev_starting(mac_ctx, rsp->vdev_id);
wma_dcs_wlan_interference_mitigation_enable(mac_ctx,