Lines Matching defs:pSharedKey
279 struct rt_cipher_key *pSharedKey;
285 pSharedKey = &pAd->SharedKey[BSS0][0];
290 NdisZeroMemory(pSharedKey, sizeof(struct rt_cipher_key));
291 pSharedKey->KeyLen = LEN_TKIP_EK;
292 NdisMoveMemory(pSharedKey->Key, &pAd->StaCfg.PTK[32], LEN_TKIP_EK);
293 NdisMoveMemory(pSharedKey->RxMic, &pAd->StaCfg.PTK[48],
295 NdisMoveMemory(pSharedKey->TxMic,
300 pSharedKey->CipherAlg = CIPHER_TKIP;
302 pSharedKey->CipherAlg = CIPHER_AES;
304 pSharedKey->CipherAlg = CIPHER_NONE;
313 pEntry->PairwiseKey.CipherAlg = pSharedKey->CipherAlg;
319 pSharedKey->CipherAlg,
320 pSharedKey->Key,
321 pSharedKey->TxMic, pSharedKey->RxMic);
324 RTMPAddWcidAttributeEntry(pAd, BSS0, 0, pSharedKey->CipherAlg, pEntry);
335 struct rt_cipher_key *pSharedKey;
337 pSharedKey = &pAd->SharedKey[BSS0][pAd->StaCfg.DefaultKeyId];
340 NdisZeroMemory(pSharedKey, sizeof(struct rt_cipher_key));
341 pSharedKey->KeyLen = LEN_TKIP_EK;
342 NdisMoveMemory(pSharedKey->Key, pAd->StaCfg.GTK, LEN_TKIP_EK);
343 NdisMoveMemory(pSharedKey->RxMic, &pAd->StaCfg.GTK[16],
345 NdisMoveMemory(pSharedKey->TxMic, &pAd->StaCfg.GTK[24],
349 pSharedKey->CipherAlg = CIPHER_NONE;
351 pSharedKey->CipherAlg = CIPHER_TKIP;
353 pSharedKey->CipherAlg = CIPHER_AES;
355 pSharedKey->CipherAlg = CIPHER_WEP64;
357 pSharedKey->CipherAlg = CIPHER_WEP128;
363 pSharedKey->CipherAlg,
364 pSharedKey->Key,
365 pSharedKey->TxMic, pSharedKey->RxMic);
371 pSharedKey->CipherAlg, NULL);