mac80211: 802.11w - Use BIP (AES-128-CMAC)
Add mechanism for managing BIP keys (IGTK) and integrate BIP into the TX/RX paths. Signed-off-by: Jouni Malinen <j@w1.fi> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
765cb46a3f
commit
3cfcf6ac6d
@@ -46,6 +46,8 @@ struct sta_info;
|
||||
* acceleration.
|
||||
* @KEY_FLAG_TODO_DEFKEY: Key is default key and debugfs needs to be updated.
|
||||
* @KEY_FLAG_TODO_ADD_DEBUGFS: Key needs to be added to debugfs.
|
||||
* @KEY_FLAG_TODO_DEFMGMTKEY: Key is default management key and debugfs needs
|
||||
* to be updated.
|
||||
*/
|
||||
enum ieee80211_internal_key_flags {
|
||||
KEY_FLAG_UPLOADED_TO_HARDWARE = BIT(0),
|
||||
@@ -54,6 +56,7 @@ enum ieee80211_internal_key_flags {
|
||||
KEY_FLAG_TODO_HWACCEL_REMOVE = BIT(3),
|
||||
KEY_FLAG_TODO_DEFKEY = BIT(4),
|
||||
KEY_FLAG_TODO_ADD_DEBUGFS = BIT(5),
|
||||
KEY_FLAG_TODO_DEFMGMTKEY = BIT(6),
|
||||
};
|
||||
|
||||
struct tkip_ctx {
|
||||
@@ -124,6 +127,7 @@ struct ieee80211_key {
|
||||
struct dentry *tx_spec;
|
||||
struct dentry *rx_spec;
|
||||
struct dentry *replays;
|
||||
struct dentry *icverrors;
|
||||
struct dentry *key;
|
||||
struct dentry *ifindex;
|
||||
int cnt;
|
||||
@@ -150,6 +154,8 @@ void ieee80211_key_link(struct ieee80211_key *key,
|
||||
struct sta_info *sta);
|
||||
void ieee80211_key_free(struct ieee80211_key *key);
|
||||
void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx);
|
||||
void ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata,
|
||||
int idx);
|
||||
void ieee80211_free_keys(struct ieee80211_sub_if_data *sdata);
|
||||
void ieee80211_enable_keys(struct ieee80211_sub_if_data *sdata);
|
||||
void ieee80211_disable_keys(struct ieee80211_sub_if_data *sdata);
|
||||
|
Reference in New Issue
Block a user