瀏覽代碼

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
Chunquan Luo 1 年之前
父節點
當前提交
ac7a655e17
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 2
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);