qcacld-3.0: Fix layering violation in wma_get_vht_ch_width

Fix layering violation in wma_get_vht_ch_width by using macros
defined in WMI instead of kernel defined macros.

Use WMI_VHT_CAP_CH_WIDTH_160MHZ and WMI_VHT_CAP_CH_WIDTH_80P80_160MHZ
instead of kernel defined macros.

Change-Id: I7d389c21d8c16fd9528cd06d98f2ec84b84aadf7
CRs-Fixed: 985099
This commit is contained in:
Krishna Kumaar Natarajan 2016-03-03 11:25:42 -08:00 • committed by Gerrit - the friendly Code Review server
commit 0f25bbb0b3

View file

@ -3379,11 +3379,9 @@ uint32_t wma_get_vht_ch_width(void)
if (NULL == wm_hdl)
return fw_ch_wd;
if (wm_hdl->vht_cap_info &
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ)
if (wm_hdl->vht_cap_info & WMI_VHT_CAP_CH_WIDTH_160MHZ)
fw_ch_wd = WNI_CFG_VHT_CHANNEL_WIDTH_160MHZ;
else if (wm_hdl->vht_cap_info &
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ)
else if (wm_hdl->vht_cap_info & WMI_VHT_CAP_CH_WIDTH_80P80_160MHZ)
fw_ch_wd = WNI_CFG_VHT_CHANNEL_WIDTH_80_PLUS_80MHZ;
return fw_ch_wd;