mac80211: allow mode change if IBSS is not allowed
authorPavel Roskin <proski@gnu.org>
Mon, 22 Dec 2008 21:39:36 +0000 (16:39 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jan 2009 19:24:56 +0000 (14:24 -0500)
commitdcebf45cdc8384be9009b2b9a825054b64742768
tree7daaaff83e1ff0f7d70a9056f19caa9c8bc7bd44
parent4fb7404e0eaf574c00d01d2b1ce2615229b350cd
mac80211: allow mode change if IBSS is not allowed

Changing mode on an interface is not allowed if IBSS is disabled for the
current channel.  That restriction should only apply when switching to
the ad-hoc mode, as it was prior to "cfg80211: handle SIOCGIWMODE/SIOCSIWMODE".

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c