MA-20217-2 Fix dfs_state_t build warning

Fixed below build warning:
vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211.c:5104:25:
error: implicit conversion from enumeration type 'enum nl80211_dfs_state' to different enumeration type 'dfs_state_t' (aka
'enum _dfs_state_t') [-Werror,-Wenum-conversion] sband->channels[i].dfs_state;

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
This commit is contained in:
Haoran.Wang 2022-04-27 10:13:40 +08:00
parent ae28818963
commit ea800459ae

View file

@ -5101,7 +5101,7 @@ int woal_get_wiphy_chan_dfs_state(struct wiphy *wiphy,
if (sband->channels[i].hw_value == channel) {
#if CFG80211_VERSION_CODE > KERNEL_VERSION(3, 8, 13)
ch_dfs_state->dfs_state =
sband->channels[i].dfs_state;
(dfs_state_t)sband->channels[i].dfs_state;
ch_dfs_state->dfs_required = MTRUE;
ret = 0;
#endif