From ac7a655e17a5d0babdfa93317316451b0a908d05 Mon Sep 17 00:00:00 2001 From: Chunquan Luo Date: Thu, 14 Sep 2023 02:16:38 -0700 Subject: [PATCH] qcacld-3.0: Update bandwidth after roaming GET_MAX_BANDWIDTH return incorrect value after set bandwidth to 20 MHz and roaming, since bonding is disable when set max bandwidth to 20 MHz. If we set restore flag as true, bonding mode will update from INI, and channel bandwidth will update while roam to bandwidth higher than 20 MHz. Change-Id: Ic0c65b1d0ab56e5840e03defa839e06321b702b8 CRs-Fixed: 3615778 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index acd956cf62..b30e95c888 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -11125,7 +11125,7 @@ skip_mlo: return -EINVAL; } set_chan_width: - return hdd_set_mac_chan_width(link_info, chwidth, link_id, false); + return hdd_set_mac_chan_width(link_info, chwidth, link_id, true); } /** @@ -12514,7 +12514,6 @@ static int hdd_get_channel_width(struct wlan_hdd_link_info *link_info, if (!vdev) return -EINVAL; - bss_chan = wlan_vdev_mlme_get_bss_chan(vdev); if (!bss_chan) { hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_ID);