diff options
author | Assaf Krauss <assaf.krauss@intel.com> | 2008-06-05 19:55:21 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-09 15:53:37 -0400 |
commit | be038b376465953c358d675cb38a611898a49dc2 (patch) | |
tree | d635b7db02e40496a582c06e93d319260fe53ed9 /net/mac80211/ieee80211_i.h | |
parent | 872ba53395b2a8be08c3ea2d39e225e5b4a8cb40 (diff) | |
download | linux-be038b376465953c358d675cb38a611898a49dc2.tar.bz2 |
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index c7314bf4bec2..006486b26726 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -899,7 +899,7 @@ extern const struct iw_handler_def ieee80211_iw_handler_def; /* ieee80211_ioctl.c */ -int ieee80211_set_freq(struct ieee80211_local *local, int freq); +int ieee80211_set_freq(struct net_device *dev, int freq); /* ieee80211_sta.c */ void ieee80211_sta_timer(unsigned long data); void ieee80211_sta_work(struct work_struct *work); |