ソースを参照

qcacld-3.0: Fix implicit conversion error for nl80211_chan_width

Explicitly convert nl80211_chan_width to phy_ch_width in function
__wlan_hdd_cfg80211_set_mon_ch.

Change-Id: I3a35a417b1155db430d6f06444b42664365b02db
CRs-Fixed: 2071677
Naveen Rawat 7 年 前
コミット
3184dd846e
1 ファイル変更2 行追加2 行削除
  1. 2 2
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -18066,13 +18066,13 @@ static int __wlan_hdd_cfg80211_set_mon_ch(struct wiphy *wiphy,
 	roam_profile.ChannelInfo.ChannelList = &ch_info->channel;
 	roam_profile.ChannelInfo.numOfChannels = 1;
 	roam_profile.phyMode = ch_info->phy_mode;
-	roam_profile.ch_params.ch_width = chandef->width;
+	roam_profile.ch_params.ch_width = hdd_map_nl_chan_width(chandef->width);
 	hdd_select_cbmode(adapter, chan_num, &roam_profile.ch_params);
 
 	qdf_mem_copy(bssid.bytes, adapter->macAddressCurrent.bytes,
 		     QDF_MAC_ADDR_SIZE);
 
-	ch_params.ch_width = chandef->width;
+	ch_params.ch_width = hdd_map_nl_chan_width(chandef->width);
 	/*
 	 * CDS api expects secondary channel for calculating
 	 * the channel params