aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-04-02 14:14:06 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:40 -0400
commit25e47c18ac4d8ad09c2ed4b99c1dbbcb7e3d2c51 (patch)
treee224f603ceb19d7c416cd37fc4479a042ccc6890 /include/net
parent6bad8766620a3c8b64afa981502fdb543e3cfd6c (diff)
cfg80211: add cipher capabilities
This adds the necessary code and fields to let drivers specify their cipher capabilities and exports them to userspace. Also update mac80211 to export the ciphers it has. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/wireless.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h
index 2bcdeda46d81..44c2642d3c06 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -205,6 +205,8 @@ struct ieee80211_supported_band {
205 * on the reg_notifier() if it chooses to ignore future 205 * on the reg_notifier() if it chooses to ignore future
206 * regulatory domain changes caused by other drivers. 206 * regulatory domain changes caused by other drivers.
207 * @signal_type: signal type reported in &struct cfg80211_bss. 207 * @signal_type: signal type reported in &struct cfg80211_bss.
208 * @cipher_suites: supported cipher suites
209 * @n_cipher_suites: number of supported cipher suites
208 */ 210 */
209struct wiphy { 211struct wiphy {
210 /* assign these fields before you register the wiphy */ 212 /* assign these fields before you register the wiphy */
@@ -224,6 +226,9 @@ struct wiphy {
224 u8 max_scan_ssids; 226 u8 max_scan_ssids;
225 u16 max_scan_ie_len; 227 u16 max_scan_ie_len;
226 228
229 int n_cipher_suites;
230 const u32 *cipher_suites;
231
227 /* If multiple wiphys are registered and you're handed e.g. 232 /* If multiple wiphys are registered and you're handed e.g.
228 * a regular netdev with assigned ieee80211_ptr, you won't 233 * a regular netdev with assigned ieee80211_ptr, you won't
229 * know whether it points to a wiphy your driver has registered 234 * know whether it points to a wiphy your driver has registered