Lines Matching refs:encrypt_key

846 			       struct mwifiex_ds_encrypt_key *encrypt_key)  in mwifiex_sec_ioctl_set_wapi_key()  argument
851 encrypt_key, true); in mwifiex_sec_ioctl_set_wapi_key()
861 struct mwifiex_ds_encrypt_key *encrypt_key) in mwifiex_sec_ioctl_set_wep_key() argument
871 index = encrypt_key->key_index; in mwifiex_sec_ioctl_set_wep_key()
872 if (encrypt_key->key_disable) { in mwifiex_sec_ioctl_set_wep_key()
874 } else if (!encrypt_key->key_len) { in mwifiex_sec_ioctl_set_wep_key()
884 memcpy(encrypt_key->key_material, in mwifiex_sec_ioctl_set_wep_key()
886 encrypt_key->key_len = wep_key->key_length; in mwifiex_sec_ioctl_set_wep_key()
896 encrypt_key->key_material, in mwifiex_sec_ioctl_set_wep_key()
897 encrypt_key->key_len); in mwifiex_sec_ioctl_set_wep_key()
899 wep_key->key_length = encrypt_key->key_len; in mwifiex_sec_ioctl_set_wep_key()
905 if (encrypt_key->key_disable) { in mwifiex_sec_ioctl_set_wep_key()
913 enc_key = encrypt_key; in mwifiex_sec_ioctl_set_wep_key()
948 struct mwifiex_ds_encrypt_key *encrypt_key) in mwifiex_sec_ioctl_set_wpa_key() argument
955 if (encrypt_key->key_len > WLAN_MAX_KEY_LEN) { in mwifiex_sec_ioctl_set_wpa_key()
966 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
969 KEY_INFO_ENABLED, encrypt_key, false); in mwifiex_sec_ioctl_set_wpa_key()
977 memcpy(ibss_key->key_param_set.key, encrypt_key->key_material, in mwifiex_sec_ioctl_set_wpa_key()
978 encrypt_key->key_len); in mwifiex_sec_ioctl_set_wpa_key()
979 memcpy(&ibss_key->key_param_set.key_len, &encrypt_key->key_len, in mwifiex_sec_ioctl_set_wpa_key()
986 encrypt_key->key_index = ~MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
989 if (!encrypt_key->key_index) in mwifiex_sec_ioctl_set_wpa_key()
990 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
995 !KEY_INFO_ENABLED, encrypt_key, true); in mwifiex_sec_ioctl_set_wpa_key()
999 KEY_INFO_ENABLED, encrypt_key, true); in mwifiex_sec_ioctl_set_wpa_key()
1012 struct mwifiex_ds_encrypt_key *encrypt_key) in mwifiex_sec_ioctl_encrypt_key() argument
1016 if (encrypt_key->is_wapi_key) in mwifiex_sec_ioctl_encrypt_key()
1017 status = mwifiex_sec_ioctl_set_wapi_key(priv, encrypt_key); in mwifiex_sec_ioctl_encrypt_key()
1018 else if (encrypt_key->key_len > WLAN_KEY_LEN_WEP104) in mwifiex_sec_ioctl_encrypt_key()
1019 status = mwifiex_sec_ioctl_set_wpa_key(priv, encrypt_key); in mwifiex_sec_ioctl_encrypt_key()
1021 status = mwifiex_sec_ioctl_set_wep_key(priv, encrypt_key); in mwifiex_sec_ioctl_encrypt_key()
1058 struct mwifiex_ds_encrypt_key encrypt_key; in mwifiex_set_encode() local
1060 memset(&encrypt_key, 0, sizeof(struct mwifiex_ds_encrypt_key)); in mwifiex_set_encode()
1061 encrypt_key.key_len = key_len; in mwifiex_set_encode()
1062 encrypt_key.key_index = key_index; in mwifiex_set_encode()
1065 encrypt_key.is_igtk_key = true; in mwifiex_set_encode()
1069 memcpy(encrypt_key.key_material, key, key_len); in mwifiex_set_encode()
1071 encrypt_key.is_current_wep_key = true; in mwifiex_set_encode()
1074 memcpy(encrypt_key.mac_addr, mac_addr, ETH_ALEN); in mwifiex_set_encode()
1076 memcpy(encrypt_key.pn, kp->seq, kp->seq_len); in mwifiex_set_encode()
1077 encrypt_key.pn_len = kp->seq_len; in mwifiex_set_encode()
1078 encrypt_key.is_rx_seq_valid = true; in mwifiex_set_encode()
1083 encrypt_key.key_disable = true; in mwifiex_set_encode()
1085 memcpy(encrypt_key.mac_addr, mac_addr, ETH_ALEN); in mwifiex_set_encode()
1088 return mwifiex_sec_ioctl_encrypt_key(priv, &encrypt_key); in mwifiex_set_encode()