diff options
author | Ying Luo <luoy@marvell.com> | 2012-08-03 21:06:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-06 15:12:57 -0400 |
commit | 9d7aba63c8630c1fdd7cb321d979c757a1abd20f (patch) | |
tree | 5d5829e1840e32a56635c39b0648c4f004c551c9 /drivers/net/wireless | |
parent | 3e238a1167cc5693a0d97b946100d74d75b72680 (diff) |
mwifiex: rename wapi_rxpn to pn
This array was used for wapi_rxpn only. Now it will be used for
AES_CMAC as well. So make a generic name for it.
Signed-off-by: Ying Luo <luoy@marvell.com>
Signed-off-by: Stone Piao <piaoyun@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mwifiex/ioctl.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmd.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h index 50191539bb32..f2865b51d5d8 100644 --- a/drivers/net/wireless/mwifiex/ioctl.h +++ b/drivers/net/wireless/mwifiex/ioctl.h | |||
@@ -213,7 +213,7 @@ struct mwifiex_debug_info { | |||
213 | }; | 213 | }; |
214 | 214 | ||
215 | #define MWIFIEX_KEY_INDEX_UNICAST 0x40000000 | 215 | #define MWIFIEX_KEY_INDEX_UNICAST 0x40000000 |
216 | #define WAPI_RXPN_LEN 16 | 216 | #define PN_LEN 16 |
217 | 217 | ||
218 | struct mwifiex_ds_encrypt_key { | 218 | struct mwifiex_ds_encrypt_key { |
219 | u32 key_disable; | 219 | u32 key_disable; |
@@ -222,7 +222,7 @@ struct mwifiex_ds_encrypt_key { | |||
222 | u8 key_material[WLAN_MAX_KEY_LEN]; | 222 | u8 key_material[WLAN_MAX_KEY_LEN]; |
223 | u8 mac_addr[ETH_ALEN]; | 223 | u8 mac_addr[ETH_ALEN]; |
224 | u32 is_wapi_key; | 224 | u32 is_wapi_key; |
225 | u8 wapi_rxpn[WAPI_RXPN_LEN]; | 225 | u8 pn[PN_LEN]; /* packet number */ |
226 | }; | 226 | }; |
227 | 227 | ||
228 | struct mwifiex_power_cfg { | 228 | struct mwifiex_power_cfg { |
diff --git a/drivers/net/wireless/mwifiex/sta_cmd.c b/drivers/net/wireless/mwifiex/sta_cmd.c index df3a33c530cf..a4a4a19b008a 100644 --- a/drivers/net/wireless/mwifiex/sta_cmd.c +++ b/drivers/net/wireless/mwifiex/sta_cmd.c | |||
@@ -610,7 +610,7 @@ mwifiex_cmd_802_11_key_material(struct mwifiex_private *priv, | |||
610 | memcpy(&key_material->key_param_set.key[2], | 610 | memcpy(&key_material->key_param_set.key[2], |
611 | enc_key->key_material, enc_key->key_len); | 611 | enc_key->key_material, enc_key->key_len); |
612 | memcpy(&key_material->key_param_set.key[2 + enc_key->key_len], | 612 | memcpy(&key_material->key_param_set.key[2 + enc_key->key_len], |
613 | enc_key->wapi_rxpn, WAPI_RXPN_LEN); | 613 | enc_key->pn, PN_LEN); |
614 | key_material->key_param_set.length = | 614 | key_material->key_param_set.length = |
615 | cpu_to_le16(WAPI_KEY_LEN + KEYPARAMSET_FIXED_LEN); | 615 | cpu_to_le16(WAPI_KEY_LEN + KEYPARAMSET_FIXED_LEN); |
616 | 616 | ||