diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-02 14:14:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:40 -0400 |
commit | 25e47c18ac4d8ad09c2ed4b99c1dbbcb7e3d2c51 (patch) | |
tree | e224f603ceb19d7c416cd37fc4479a042ccc6890 /include | |
parent | 6bad8766620a3c8b64afa981502fdb543e3cfd6c (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')
-rw-r--r-- | include/linux/nl80211.h | 4 | ||||
-rw-r--r-- | include/net/wireless.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 05ba3539b77e..c01423888db9 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -453,6 +453,9 @@ enum nl80211_commands { | |||
453 | * attributes consists of a nested attribute containing | 453 | * attributes consists of a nested attribute containing |
454 | * NL80211_FREQUENCY_ATTR_* | 454 | * NL80211_FREQUENCY_ATTR_* |
455 | * | 455 | * |
456 | * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported | ||
457 | * cipher suites | ||
458 | * | ||
456 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 459 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
457 | * @__NL80211_ATTR_AFTER_LAST: internal use | 460 | * @__NL80211_ATTR_AFTER_LAST: internal use |
458 | */ | 461 | */ |
@@ -540,6 +543,7 @@ enum nl80211_attrs { | |||
540 | NL80211_ATTR_KEY_TYPE, | 543 | NL80211_ATTR_KEY_TYPE, |
541 | 544 | ||
542 | NL80211_ATTR_MAX_SCAN_IE_LEN, | 545 | NL80211_ATTR_MAX_SCAN_IE_LEN, |
546 | NL80211_ATTR_CIPHER_SUITES, | ||
543 | 547 | ||
544 | NL80211_ATTR_FREQ_BEFORE, | 548 | NL80211_ATTR_FREQ_BEFORE, |
545 | NL80211_ATTR_FREQ_AFTER, | 549 | NL80211_ATTR_FREQ_AFTER, |
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 | */ |
209 | struct wiphy { | 211 | struct 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 |