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
This commit is contained in:
Naveen Rawat 2017-07-05 14:58:18 -07:00 committed by snandini
parent d9dd4b33f6
commit 3184dd846e

View File

@ -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