Переглянути джерело

qcacld-3.0: Set chan freq to value passed to api

During monitor mode set target chan freq is incorrectly set
change is to set the chan freq to correct freq value in
wlan_hdd_set_mon_chan and wlan_hdd_cfg80211_set_mon_ch api's.

Change-Id: Ie5e7ce7cdf7417cddfdba808a76ab466397dfd9c
CRs-Fixed: 3183292
Amruta Kulkarni 3 роки тому
батько
коміт
f42a94bae2
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -22887,7 +22887,7 @@ static int __wlan_hdd_cfg80211_set_mon_ch(struct wiphy *wiphy,
 		return -ENOMEM;
 
 	req->vdev_id = adapter->vdev_id;
-	req->target_chan_freq = ch_info->freq;
+	req->target_chan_freq = chandef->chan->center_freq;
 	req->ch_width = ch_width;
 
 	ch_params.ch_width = ch_width;

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -8886,7 +8886,7 @@ int wlan_hdd_set_mon_chan(struct hdd_adapter *adapter, qdf_freq_t freq,
 	if (!req)
 		return -ENOMEM;
 	req->vdev_id = adapter->vdev_id;
-	req->target_chan_freq = ch_info->freq;
+	req->target_chan_freq = freq;
 	req->ch_width = ch_width;
 
 	ch_params.ch_width = ch_width;