aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-09 04:30:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-11 12:32:50 -0500
commite999882a052a2959571989b2db2b51893d23c0bb (patch)
treecbdb8c0ab84e372a0a9466720a058a9a0745349d /net/mac80211
parent07ef03ee8b280a536b38ccfe512b9556996f0492 (diff)
mac80211/cfg80211: report monitor channel in wireless extensions
Just add API to get the channel & report it. Trivial really. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index eb54b6cf85c6..192f213cf43e 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2590,6 +2590,14 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
2590 return 0; 2590 return 0;
2591} 2591}
2592 2592
2593static struct ieee80211_channel *
2594ieee80211_wiphy_get_channel(struct wiphy *wiphy)
2595{
2596 struct ieee80211_local *local = wiphy_priv(wiphy);
2597
2598 return local->oper_channel;
2599}
2600
2593struct cfg80211_ops mac80211_config_ops = { 2601struct cfg80211_ops mac80211_config_ops = {
2594 .add_virtual_intf = ieee80211_add_iface, 2602 .add_virtual_intf = ieee80211_add_iface,
2595 .del_virtual_intf = ieee80211_del_iface, 2603 .del_virtual_intf = ieee80211_del_iface,
@@ -2656,4 +2664,5 @@ struct cfg80211_ops mac80211_config_ops = {
2656 .tdls_oper = ieee80211_tdls_oper, 2664 .tdls_oper = ieee80211_tdls_oper,
2657 .tdls_mgmt = ieee80211_tdls_mgmt, 2665 .tdls_mgmt = ieee80211_tdls_mgmt,
2658 .probe_client = ieee80211_probe_client, 2666 .probe_client = ieee80211_probe_client,
2667 .get_channel = ieee80211_wiphy_get_channel,
2659}; 2668};