diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-06-25 21:14:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 20:21:19 -0400 |
commit | d1eb5003d78cd791ff1f214163030e993d53f49b (patch) | |
tree | eb084ff99fa4ba2caacd415f679b84ece8ded8ca /drivers/staging/vt6656/key.h | |
parent | d38b13aa7884021ddb06fb6f248da265b8a6fbee (diff) | |
download | linux-stable-d1eb5003d78cd791ff1f214163030e993d53f49b.tar.gz linux-stable-d1eb5003d78cd791ff1f214163030e993d53f49b.tar.bz2 linux-stable-d1eb5003d78cd791ff1f214163030e993d53f49b.zip |
staging: vt6656: mac80211 conversion: add key functions
Create vnt_key_init_table to replace KeyvInitTable.
Create vnt_set_keymode to handle key setting operations with five different
modes VNT_KEY_DEFAULTKEY, VNT_KEY_GROUP_ADDRESS, VNT_KEY_ALLGROUP, VNT_KEY_GROUP
and VNT_KEY_PAIRWISE. VNT_KEY_ONFLY and VNT_KEY_ONFLY_ALL are for when
key latching in driver is not required.
Create vnt_set_keys to handle mac80211 key cipher modes, four modes are
supported WLAN_CIPHER_SUITE_WEP40, WLAN_CIPHER_SUITE_WEP104, WLAN_CIPHER_SUITE_TKIP
and WLAN_CIPHER_SUITE_CCMP.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/key.h')
-rw-r--r-- | drivers/staging/vt6656/key.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/key.h b/drivers/staging/vt6656/key.h index 23e188d125ba..7b8c96026076 100644 --- a/drivers/staging/vt6656/key.h +++ b/drivers/staging/vt6656/key.h @@ -51,6 +51,14 @@ #define KEY_CTL_CCMP 0x03 #define KEY_CTL_INVALID 0xFF +#define VNT_KEY_DEFAULTKEY 0x1 +#define VNT_KEY_GROUP_ADDRESS 0x2 +#define VNT_KEY_ALLGROUP 0x4 +#define VNT_KEY_GROUP 0x40 +#define VNT_KEY_PAIRWISE 0x00 +#define VNT_KEY_ONFLY 0x8000 +#define VNT_KEY_ONFLY_ALL 0x4000 + typedef struct tagSKeyItem { bool bKeyValid; @@ -109,4 +117,9 @@ int KeybSetAllGroupKey(struct vnt_private *, PSKeyManagement pTable, u32 dwKeyIndex, u32 uKeyLength, u64 *KeyRSC, u8 *pbyKey, u8 byKeyDecMode); +int vnt_key_init_table(struct vnt_private *); + +int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, + struct ieee80211_vif *vif, struct ieee80211_key_conf *key); + #endif /* __KEY_H__ */ |