mac80211: ibss: fix ignored channel parameter
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 21 Aug 2013 13:30:25 +0000 (15:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2013 13:33:08 +0000 (15:33 +0200)
commit75a423f493ffdf741acae27bf179cd560f7813d7
tree4981644ea18a1f4029e2626246b4bd81e8ca966f
parent2dfca312a91631311c1cf7c090246cc8103de038
mac80211: ibss: fix ignored channel parameter

my earlier patch "mac80211: change IBSS channel state to chandef"
created a regression by ignoring the channel parameter in
__ieee80211_sta_join_ibss, which breaks IBSS channel selection. This
patch fixes this situation by using the right channel and adopting the
selected bandwidth mode.

Cc: stable@vger.kernel.org
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c