]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: ibss: Fix channel type enum in ieee80211_sta_join_ibss()
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 17 Apr 2017 20:59:53 +0000 (13:59 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Apr 2017 09:02:35 +0000 (11:02 +0200)
commitd94a656790f5355f59dac42827249b4a4c732f1e
treec512468ee712518b0d09ab2c385bcbc9aaeb2252
parent5a7e508e712d7d3eb51028dd2808a7dd1e412748
mac80211: ibss: Fix channel type enum in ieee80211_sta_join_ibss()

cfg80211_chandef_create() expects an 'enum nl80211_channel_type' as
channel type however in ieee80211_sta_join_ibss()
NL80211_CHAN_WIDTH_20_NOHT is passed in two occasions, which is of
the enum type 'nl80211_chan_width'. Change the value to NL80211_CHAN_NO_HT
(20 MHz, non-HT channel) of the channel type enum.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c