소스 검색

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
Yu Wang 5 년 전
부모
커밋
2bfeac4376
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      os_if/linux/coex/src/wlan_cfg80211_coex.c

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