aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 12096b4ebf62..5d29ed1f7c62 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1689,16 +1689,11 @@ static int nl80211_send_iface(struct sk_buff *msg, u32 pid, u32 seq, int flags,
1689 (cfg80211_rdev_list_generation << 2))) 1689 (cfg80211_rdev_list_generation << 2)))
1690 goto nla_put_failure; 1690 goto nla_put_failure;
1691 1691
1692 if (rdev->ops->get_channel) { 1692 if (rdev->monitor_channel) {
1693 struct ieee80211_channel *chan; 1693 if (nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ,
1694 enum nl80211_channel_type channel_type; 1694 rdev->monitor_channel->center_freq) ||
1695 1695 nla_put_u32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE,
1696 chan = rdev->ops->get_channel(&rdev->wiphy, &channel_type); 1696 rdev->monitor_channel_type))
1697 if (chan &&
1698 (nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ,
1699 chan->center_freq) ||
1700 nla_put_u32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE,
1701 channel_type)))
1702 goto nla_put_failure; 1697 goto nla_put_failure;
1703 } 1698 }
1704 1699