qcacld-3.0: Process get cu_req for 2 GHz band connection
Process GET_CU_FOR_EACH_SUB_BW request from the upper layer in case DUT is connected with a channel width of 40 MHz and the connected frequency is in the 2 GHz band. Change-Id: Idc748f83af72baed946340c61d5c6a0bba1baf00 CRs-Fixed: 3506871
This commit is contained in:

committed by
Rahul Choudhary

parent
e563cf7379
commit
966ceefe89
@@ -6797,6 +6797,11 @@ wlan_mlme_send_ch_width_update_with_notify(struct wlan_objmgr_psoc *psoc,
|
||||
QDF_STATUS status;
|
||||
enum phy_ch_width associated_ch_width;
|
||||
struct wlan_channel *des_chan;
|
||||
struct mlme_legacy_priv *mlme_priv;
|
||||
|
||||
mlme_priv = wlan_vdev_mlme_get_ext_hdl(vdev);
|
||||
if (!mlme_priv)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
||||
des_chan = wlan_vdev_mlme_get_des_chan(vdev);
|
||||
if (!des_chan)
|
||||
@@ -6808,8 +6813,10 @@ wlan_mlme_send_ch_width_update_with_notify(struct wlan_objmgr_psoc *psoc,
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
associated_ch_width = wlan_cm_get_associated_ch_width(psoc, vdev_id);
|
||||
if (ch_width > associated_ch_width) {
|
||||
associated_ch_width =
|
||||
mlme_priv->connect_info.chan_info_orig.ch_width_orig;
|
||||
if (associated_ch_width == CH_WIDTH_INVALID ||
|
||||
ch_width > associated_ch_width) {
|
||||
mlme_debug("vdev %d: Invalid new chwidth:%d, assoc ch_width:%d",
|
||||
vdev_id, ch_width, associated_ch_width);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
Reference in New Issue
Block a user