mac80211: return if IBSS chandef can not be used
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Mon, 8 Jul 2013 14:55:57 +0000 (16:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jul 2013 06:58:10 +0000 (09:58 +0300)
commit4b42aab1e8fcac2e9b835a7d93bf30dc9a032faa
treed725ba14d8bc8a4498ee71054e0d03163dcae2e9
parent7ca15a0ae865067aac8d36e27e0acbe4a8f1e70a
mac80211: return if IBSS chandef can not be used

This was originally designed to fail when a 40+/40- mode can not be
used, but basic modes (such as 5/10/20 MHz) must be handled
with an error.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
net/mac80211/ibss.c