diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-05-19 10:17:12 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 20:13:27 (GMT) |
commit | 252aa631f88080920a7083ac5a5844ffc5463629 (patch) | |
tree | e1482e9cf7c7230acb9ed33c8a24687e48dc7aa1 /net/mac80211/cfg.c | |
parent | 4f424867dd4752d457458fec29ca57ce5d7dc4ac (diff) | |
download | linux-fsl-qoriq-252aa631f88080920a7083ac5a5844ffc5463629.tar.xz |
cfg80211: make action channel type optional
When sending action frames, we want to verify
that we do that on the correct channel. However,
checking the channel type in addition can get in
the way, since the channel type could change on
the fly during an association, and it's not
useful to have the channel type anyway since it
has no effect on the transmission. Therefore,
make it optional to specify so that if wanted,
it can still be checked, but is not required.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index c7000a6..f8c49c5 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1554,10 +1554,12 @@ static int ieee80211_cancel_remain_on_channel(struct wiphy *wiphy, static int ieee80211_action(struct wiphy *wiphy, struct net_device *dev, struct ieee80211_channel *chan, enum nl80211_channel_type channel_type, + bool channel_type_valid, const u8 *buf, size_t len, u64 *cookie) { return ieee80211_mgd_action(IEEE80211_DEV_TO_SUB_IF(dev), chan, - channel_type, buf, len, cookie); + channel_type, channel_type_valid, + buf, len, cookie); } struct cfg80211_ops mac80211_config_ops = { |