memcpy(psecuritypriv->
dot118021XGrpKey[key_index].skey,
- param->u.crypt.key,
+ keyparms->key,
(key_len > 16 ? 16 : key_len));
/* DEBUG_ERR("set key length :param->u.crypt.key_len =%d\n", param->u.crypt.key_len); */
/* set mic key */
memcpy(psecuritypriv->
dot118021XGrptxmickey[key_index].skey,
- ¶m->u.crypt.key[16], 8);
+ &keyparms->key[16], 8);
memcpy(psecuritypriv->
dot118021XGrprxmickey[key_index].skey,
- ¶m->u.crypt.key[24], 8);
+ &keyparms->key[24], 8);
psecuritypriv->busetkipkey = 1;
WLAN_CIPHER_SUITE_CCMP;
memcpy(psecuritypriv->
- dot118021XGrpKey[key_index].
- skey, param->u.crypt.key,
+ dot118021XGrpKey[key_index].skey,
+ keyparms->key,
(key_len > 16 ? 16 : key_len));
} else {
DBG_8723A("%s, set group_key, none\n",
psecuritypriv->dot11PrivacyAlgrthm =
psecuritypriv->dot118021XGrpPrivacy;
- set_group_key(padapter, param->u.crypt.key,
+ set_group_key(padapter, keyparms->key,
psecuritypriv->dot118021XGrpPrivacy,
key_index);
if (param->u.crypt.set_tx == 1) {
/* pairwise key */
memcpy(psta->dot118021x_UncstKey.skey,
- param->u.crypt.key,
- (key_len > 16 ? 16 : key_len));
+ keyparms->key, (key_len > 16 ? 16 : key_len));
if (keyparms->cipher == WLAN_CIPHER_SUITE_WEP40 ||
keyparms->cipher == WLAN_CIPHER_SUITE_WEP104) {
/* DEBUG_ERR("set key length :param->u.crypt.key_len =%d\n", param->u.crypt.key_len); */
/* set mic key */
memcpy(psta->dot11tkiptxmickey.skey,
- ¶m->u.crypt.key[16], 8);
+ &keyparms->key[16], 8);
memcpy(psta->dot11tkiprxmickey.skey,
- ¶m->u.crypt.key[24], 8);
+ &keyparms->key[24], 8);
psecuritypriv->busetkipkey = 1;
keyparms->cipher == WLAN_CIPHER_SUITE_WEP104) {
memcpy(psecuritypriv->
dot118021XGrpKey[key_index].skey,
- param->u.crypt.key,
+ keyparms->key,
(key_len > 16 ? 16 : key_len));
psecuritypriv->dot118021XGrpPrivacy =
memcpy(psecuritypriv->
dot118021XGrpKey[key_index].skey,
- param->u.crypt.key,
+ keyparms->key,
(key_len > 16 ? 16 : key_len));
/* DEBUG_ERR("set key length :param->u"
/* set mic key */
memcpy(psecuritypriv->
dot118021XGrptxmickey[key_index].skey,
- ¶m->u.crypt.key[16], 8);
+ &keyparms->key[16], 8);
memcpy(psecuritypriv->
dot118021XGrprxmickey[key_index].skey,
- ¶m->u.crypt.key[24], 8);
+ &keyparms->key[24], 8);
psecuritypriv->busetkipkey = 1;
memcpy(psecuritypriv->
dot118021XGrpKey[key_index].skey,
- param->u.crypt.key,
+ keyparms->key,
(key_len > 16 ? 16 : key_len));
} else {
psecuritypriv->dot118021XGrpPrivacy = 0;
psecuritypriv->dot11PrivacyAlgrthm =
psecuritypriv->dot118021XGrpPrivacy;
- set_group_key(padapter, param->u.crypt.key,
+ set_group_key(padapter, keyparms->key,
psecuritypriv->dot118021XGrpPrivacy,
key_index);