diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-10-05 13:39:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 16:30:40 -0400 |
commit | e31b82136d1adc7a599b6e99d3321e5831841f5a (patch) | |
tree | c72d78d4cccfd08587e909c7efe59956f1cbc23e /include/linux/nl80211.h | |
parent | 53f73c09d64f1fa7d7e6e8b6bb7468d42eddc92d (diff) |
cfg80211/mac80211: allow per-station GTKs
This adds API to allow adding per-station GTKs,
updates mac80211 to support it, and also allows
drivers to remove a key from hwaccel again when
this may be necessary due to multiple GTKs.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index c4efdfa24ed8..e451f176e662 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -801,6 +801,9 @@ enum nl80211_commands { | |||
801 | * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING | 801 | * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING |
802 | * for non-automatic settings. | 802 | * for non-automatic settings. |
803 | * | 803 | * |
804 | * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly | ||
805 | * means support for per-station GTKs. | ||
806 | * | ||
804 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 807 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
805 | * @__NL80211_ATTR_AFTER_LAST: internal use | 808 | * @__NL80211_ATTR_AFTER_LAST: internal use |
806 | */ | 809 | */ |
@@ -968,6 +971,8 @@ enum nl80211_attrs { | |||
968 | NL80211_ATTR_CONTROL_PORT_ETHERTYPE, | 971 | NL80211_ATTR_CONTROL_PORT_ETHERTYPE, |
969 | NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, | 972 | NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, |
970 | 973 | ||
974 | NL80211_ATTR_SUPPORT_IBSS_RSN, | ||
975 | |||
971 | /* add attributes here, update the policy in nl80211.c */ | 976 | /* add attributes here, update the policy in nl80211.c */ |
972 | 977 | ||
973 | __NL80211_ATTR_AFTER_LAST, | 978 | __NL80211_ATTR_AFTER_LAST, |
@@ -1659,11 +1664,14 @@ enum nl80211_auth_type { | |||
1659 | * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key | 1664 | * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key |
1660 | * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key | 1665 | * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key |
1661 | * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) | 1666 | * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) |
1667 | * @NUM_NL80211_KEYTYPES: number of defined key types | ||
1662 | */ | 1668 | */ |
1663 | enum nl80211_key_type { | 1669 | enum nl80211_key_type { |
1664 | NL80211_KEYTYPE_GROUP, | 1670 | NL80211_KEYTYPE_GROUP, |
1665 | NL80211_KEYTYPE_PAIRWISE, | 1671 | NL80211_KEYTYPE_PAIRWISE, |
1666 | NL80211_KEYTYPE_PEERKEY, | 1672 | NL80211_KEYTYPE_PEERKEY, |
1673 | |||
1674 | NUM_NL80211_KEYTYPES | ||
1667 | }; | 1675 | }; |
1668 | 1676 | ||
1669 | /** | 1677 | /** |
@@ -1694,6 +1702,9 @@ enum nl80211_wpa_versions { | |||
1694 | * CCMP keys, each six bytes in little endian | 1702 | * CCMP keys, each six bytes in little endian |
1695 | * @NL80211_KEY_DEFAULT: flag indicating default key | 1703 | * @NL80211_KEY_DEFAULT: flag indicating default key |
1696 | * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key | 1704 | * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key |
1705 | * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not | ||
1706 | * specified the default depends on whether a MAC address was | ||
1707 | * given with the command using the key or not (u32) | ||
1697 | * @__NL80211_KEY_AFTER_LAST: internal | 1708 | * @__NL80211_KEY_AFTER_LAST: internal |
1698 | * @NL80211_KEY_MAX: highest key attribute | 1709 | * @NL80211_KEY_MAX: highest key attribute |
1699 | */ | 1710 | */ |
@@ -1705,6 +1716,7 @@ enum nl80211_key_attributes { | |||
1705 | NL80211_KEY_SEQ, | 1716 | NL80211_KEY_SEQ, |
1706 | NL80211_KEY_DEFAULT, | 1717 | NL80211_KEY_DEFAULT, |
1707 | NL80211_KEY_DEFAULT_MGMT, | 1718 | NL80211_KEY_DEFAULT_MGMT, |
1719 | NL80211_KEY_TYPE, | ||
1708 | 1720 | ||
1709 | /* keep last */ | 1721 | /* keep last */ |
1710 | __NL80211_KEY_AFTER_LAST, | 1722 | __NL80211_KEY_AFTER_LAST, |