diff options
author | Pontus Fuchs <pontus.fuchs@gmail.com> | 2012-04-03 10:39:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-13 14:32:49 -0400 |
commit | d91df0e3a1b9a7427785cb8d28be073df9b18b78 (patch) | |
tree | ecaafaaf178a20fdcbe21fc5c8e586527ab45aa1 /net/mac80211/cfg.c | |
parent | 3a4b43fde103da510d8962a073bb748706f426bd (diff) |
cfg80211: Add channel information to NL80211_CMD_GET_INTERFACE
If the current channel is known, add frequency and channel type to
NL80211_CMD_GET_INTERFACE.
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
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 355735491252..510a745c3108 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2688,10 +2688,12 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, | |||
2688 | } | 2688 | } |
2689 | 2689 | ||
2690 | static struct ieee80211_channel * | 2690 | static struct ieee80211_channel * |
2691 | ieee80211_wiphy_get_channel(struct wiphy *wiphy) | 2691 | ieee80211_wiphy_get_channel(struct wiphy *wiphy, |
2692 | enum nl80211_channel_type *type) | ||
2692 | { | 2693 | { |
2693 | struct ieee80211_local *local = wiphy_priv(wiphy); | 2694 | struct ieee80211_local *local = wiphy_priv(wiphy); |
2694 | 2695 | ||
2696 | *type = local->_oper_channel_type; | ||
2695 | return local->oper_channel; | 2697 | return local->oper_channel; |
2696 | } | 2698 | } |
2697 | 2699 | ||