Lines Matching refs:pSharedKey
787 struct rt_cipher_key *pSharedKey;
789 pSharedKey = &pAd->SharedKey[BSS0][0];
794 NdisZeroMemory(pSharedKey, sizeof(struct rt_cipher_key));
795 pSharedKey->KeyLen = LEN_TKIP_EK;
796 NdisMoveMemory(pSharedKey->Key, &pAd->StaCfg.PTK[32],
798 NdisMoveMemory(pSharedKey->RxMic, &pAd->StaCfg.PTK[48],
800 NdisMoveMemory(pSharedKey->TxMic,
806 pSharedKey->CipherAlg = CIPHER_TKIP;
808 pSharedKey->CipherAlg = CIPHER_AES;
810 pSharedKey->CipherAlg = CIPHER_NONE;
821 pEntry->PairwiseKey.CipherAlg = pSharedKey->CipherAlg;
827 pSharedKey->CipherAlg,
828 pSharedKey->Key,
829 pSharedKey->TxMic, pSharedKey->RxMic);
834 0, pSharedKey->CipherAlg, pEntry);
2227 struct rt_cipher_key *pSharedKey;
2233 pSharedKey = &pAd->SharedKey[BSS0][pAd->StaCfg.DefaultKeyId];
2236 NdisZeroMemory(pSharedKey, sizeof(struct rt_cipher_key));
2237 pSharedKey->KeyLen = LEN_TKIP_EK;
2238 NdisMoveMemory(pSharedKey->Key, pAd->StaCfg.GTK, LEN_TKIP_EK);
2239 NdisMoveMemory(pSharedKey->RxMic, &pAd->StaCfg.GTK[16],
2241 NdisMoveMemory(pSharedKey->TxMic, &pAd->StaCfg.GTK[24],
2245 pSharedKey->CipherAlg = CIPHER_NONE;
2247 pSharedKey->CipherAlg = CIPHER_TKIP;
2250 pSharedKey->CipherAlg = CIPHER_AES;
2252 pSharedKey->CipherAlg = CIPHER_WEP64;
2255 pSharedKey->CipherAlg = CIPHER_WEP128;
2261 pSharedKey->CipherAlg,
2262 pSharedKey->Key,
2263 pSharedKey->TxMic, pSharedKey->RxMic);
2269 pSharedKey->CipherAlg, NULL);