diff options
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r-- | net/wireless/chan.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 17cd0c04d139..2fcfe0993ca2 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> | 6 | * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/export.h> | ||
9 | #include <net/cfg80211.h> | 10 | #include <net/cfg80211.h> |
10 | #include "core.h" | 11 | #include "core.h" |
11 | 12 | ||
@@ -44,9 +45,9 @@ rdev_freq_to_chan(struct cfg80211_registered_device *rdev, | |||
44 | return chan; | 45 | return chan; |
45 | } | 46 | } |
46 | 47 | ||
47 | static bool can_beacon_sec_chan(struct wiphy *wiphy, | 48 | int cfg80211_can_beacon_sec_chan(struct wiphy *wiphy, |
48 | struct ieee80211_channel *chan, | 49 | struct ieee80211_channel *chan, |
49 | enum nl80211_channel_type channel_type) | 50 | enum nl80211_channel_type channel_type) |
50 | { | 51 | { |
51 | struct ieee80211_channel *sec_chan; | 52 | struct ieee80211_channel *sec_chan; |
52 | int diff; | 53 | int diff; |
@@ -75,6 +76,7 @@ static bool can_beacon_sec_chan(struct wiphy *wiphy, | |||
75 | 76 | ||
76 | return true; | 77 | return true; |
77 | } | 78 | } |
79 | EXPORT_SYMBOL(cfg80211_can_beacon_sec_chan); | ||
78 | 80 | ||
79 | int cfg80211_set_freq(struct cfg80211_registered_device *rdev, | 81 | int cfg80211_set_freq(struct cfg80211_registered_device *rdev, |
80 | struct wireless_dev *wdev, int freq, | 82 | struct wireless_dev *wdev, int freq, |
@@ -109,8 +111,8 @@ int cfg80211_set_freq(struct cfg80211_registered_device *rdev, | |||
109 | switch (channel_type) { | 111 | switch (channel_type) { |
110 | case NL80211_CHAN_HT40PLUS: | 112 | case NL80211_CHAN_HT40PLUS: |
111 | case NL80211_CHAN_HT40MINUS: | 113 | case NL80211_CHAN_HT40MINUS: |
112 | if (!can_beacon_sec_chan(&rdev->wiphy, chan, | 114 | if (!cfg80211_can_beacon_sec_chan(&rdev->wiphy, chan, |
113 | channel_type)) { | 115 | channel_type)) { |
114 | printk(KERN_DEBUG | 116 | printk(KERN_DEBUG |
115 | "cfg80211: Secondary channel not " | 117 | "cfg80211: Secondary channel not " |
116 | "allowed to initiate communication\n"); | 118 | "allowed to initiate communication\n"); |