From 2bfeac437690685f7e760425c33bc1395ed8e52c Mon Sep 17 00:00:00 2001 From: Yu Wang Date: Mon, 20 Apr 2020 18:54:04 +0800 Subject: [PATCH] qcacmn: update BT coex config for all vdevs when setting BT coex mode When setting BT coex mode, the config was not updated for all when there are multiple vdevs. Modify the code to update it for all vdevs. CRs-Fixed: 2667933 Change-Id: Ibad3adf44bef6842a12cbe7e46050b693ed474d6 --- os_if/linux/coex/src/wlan_cfg80211_coex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_if/linux/coex/src/wlan_cfg80211_coex.c b/os_if/linux/coex/src/wlan_cfg80211_coex.c index 0cf7dffe2e..cf7c82b5af 100644 --- a/os_if/linux/coex/src/wlan_cfg80211_coex.c +++ b/os_if/linux/coex/src/wlan_cfg80211_coex.c @@ -74,7 +74,7 @@ __wlan_cfg80211_coex_set_btc_chain_mode(struct wlan_objmgr_vdev *vdev, } wlan_objmgr_for_each_psoc_vdev(psoc, vdev_id, vdev_tmp) { - status = ucfg_coex_send_btc_chain_mode(vdev, mode); + status = ucfg_coex_send_btc_chain_mode(vdev_tmp, mode); err = qdf_status_to_os_return(status); if (err) { coex_err("Failed to set btc chain mode to %d for vdev %d", @@ -87,7 +87,7 @@ __wlan_cfg80211_coex_set_btc_chain_mode(struct wlan_objmgr_vdev *vdev, if (!do_restart) continue; - wlan_coex_config_updated(vdev, COEX_CONFIG_BTC_CHAIN_MODE); + wlan_coex_config_updated(vdev_tmp, COEX_CONFIG_BTC_CHAIN_MODE); } return 0;