]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79ad148f910d05f58211802e1b215ace82d5b7c8
tree7daaaff83e1ff0f7d70a9056f19caa9c8bc7bd44
parent79b57cb79600bd94f3abf9a12361355a8da0430d
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