diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index e1731b7c2523..b7116ef84a3b 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * mac80211 configuration hooks for cfg80211 | 2 | * mac80211 configuration hooks for cfg80211 |
3 | * | 3 | * |
4 | * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net> | 4 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> |
5 | * | 5 | * |
6 | * This file is GPLv2 as found in COPYING. | 6 | * This file is GPLv2 as found in COPYING. |
7 | */ | 7 | */ |
@@ -1448,6 +1448,15 @@ static int ieee80211_cancel_remain_on_channel(struct wiphy *wiphy, | |||
1448 | return ieee80211_wk_cancel_remain_on_channel(sdata, cookie); | 1448 | return ieee80211_wk_cancel_remain_on_channel(sdata, cookie); |
1449 | } | 1449 | } |
1450 | 1450 | ||
1451 | static int ieee80211_action(struct wiphy *wiphy, struct net_device *dev, | ||
1452 | struct ieee80211_channel *chan, | ||
1453 | enum nl80211_channel_type channel_type, | ||
1454 | const u8 *buf, size_t len, u64 *cookie) | ||
1455 | { | ||
1456 | return ieee80211_mgd_action(IEEE80211_DEV_TO_SUB_IF(dev), chan, | ||
1457 | channel_type, buf, len, cookie); | ||
1458 | } | ||
1459 | |||
1451 | struct cfg80211_ops mac80211_config_ops = { | 1460 | struct cfg80211_ops mac80211_config_ops = { |
1452 | .add_virtual_intf = ieee80211_add_iface, | 1461 | .add_virtual_intf = ieee80211_add_iface, |
1453 | .del_virtual_intf = ieee80211_del_iface, | 1462 | .del_virtual_intf = ieee80211_del_iface, |
@@ -1496,4 +1505,5 @@ struct cfg80211_ops mac80211_config_ops = { | |||
1496 | .set_bitrate_mask = ieee80211_set_bitrate_mask, | 1505 | .set_bitrate_mask = ieee80211_set_bitrate_mask, |
1497 | .remain_on_channel = ieee80211_remain_on_channel, | 1506 | .remain_on_channel = ieee80211_remain_on_channel, |
1498 | .cancel_remain_on_channel = ieee80211_cancel_remain_on_channel, | 1507 | .cancel_remain_on_channel = ieee80211_cancel_remain_on_channel, |
1508 | .action = ieee80211_action, | ||
1499 | }; | 1509 | }; |