mac80211: Checking IBSS support while changing channel in ad-hoc mode
authorAssaf Krauss <assaf.krauss@intel.com>
Thu, 5 Jun 2008 16:55:21 +0000 (19:55 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jun 2008 19:53:37 +0000 (15:53 -0400)
commitbe038b376465953c358d675cb38a611898a49dc2
treed635b7db02e40496a582c06e93d319260fe53ed9
parent872ba53395b2a8be08c3ea2d39e225e5b4a8cb40
mac80211: Checking IBSS support while changing channel in ad-hoc mode

This patch adds a check to the set_channel flow. When attempting to change
the channel while in IBSS mode, and the new channel does not support IBSS
mode, the flow return with an error value with no consequences on the
mac80211 and driver state.

Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/wext.c