aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorAlexander Simon <an.alexsimon@googlemail.com>2011-11-30 10:56:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-06 16:05:24 -0500
commit54858ee5bf659f80a784303e41ee8898fd163f98 (patch)
tree46901bbd75f8dacfe9677e8d17085508d918d325 /include/net/cfg80211.h
parent2b50b8f58803f4c8521c6aa5401ed01cd36a1f77 (diff)
nl80211: Parse channel type attribute in an ibss join request
Prepare cfg80211 for IBSS HT: * extend cfg80211 ibss struct with channel_type * Check if extension channel can be used * Export can_beacon_sec_chan for use in mac80211 (will be called from ibss.c later). Signed-off-by: Alexander Simon <an.alexsimon@googlemail.com> [siwu@hrz.tu-chemnitz.de: Updates] * fix cfg80211_can_beacon_ext_chan comment * remove implicit channel_type enum assumptions * remove radar channel flags check * add HT IBSS feature flag * reword commit message Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index f0e82b2e4227..3de1c39d03e5 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1149,6 +1149,7 @@ struct cfg80211_ibss_params {
1149 u8 *ssid; 1149 u8 *ssid;
1150 u8 *bssid; 1150 u8 *bssid;
1151 struct ieee80211_channel *channel; 1151 struct ieee80211_channel *channel;
1152 enum nl80211_channel_type channel_type;
1152 u8 *ie; 1153 u8 *ie;
1153 u8 ssid_len, ie_len; 1154 u8 ssid_len, ie_len;
1154 u16 beacon_interval; 1155 u16 beacon_interval;
@@ -3267,6 +3268,16 @@ void cfg80211_report_obss_beacon(struct wiphy *wiphy,
3267 const u8 *frame, size_t len, 3268 const u8 *frame, size_t len,
3268 int freq, gfp_t gfp); 3269 int freq, gfp_t gfp);
3269 3270
3271/*
3272 * cfg80211_can_beacon_sec_chan - test if ht40 on extension channel can be used
3273 * @wiphy: the wiphy
3274 * @chan: main channel
3275 * @channel_type: HT mode
3276 */
3277int cfg80211_can_beacon_sec_chan(struct wiphy *wiphy,
3278 struct ieee80211_channel *chan,
3279 enum nl80211_channel_type channel_type);
3280
3270/* Logging, debugging and troubleshooting/diagnostic helpers. */ 3281/* Logging, debugging and troubleshooting/diagnostic helpers. */
3271 3282
3272/* wiphy_printk helpers, similar to dev_printk */ 3283/* wiphy_printk helpers, similar to dev_printk */