Home
last modified time | relevance | path

Searched refs:KeyIdx (Results 1 – 22 of 22) sorted by relevance

/drivers/staging/rt2870/common/
Dcmm_info.c895 ULONG KeyIdx;
908 KeyIdx = pKey->KeyIndex & 0xff;
923 if (KeyIdx != 0)
939 pAd->SharedKey[apidx][KeyIdx].Type = PAIRWISE_KEY;
955 if (KeyIdx >= GROUP_KEY_NUM)
960 pAd->ApCfg.MBSSID[apidx].DefaultKeyId = (UCHAR) KeyIdx;
962 pAd->SharedKey[apidx][KeyIdx].Type = GROUP_KEY;
986 NdisMoveMemory(pAd->SharedKey[apidx][KeyIdx].RxTsc, &pKey->KeyRSC, 6);
991 NdisZeroMemory(pAd->SharedKey[apidx][KeyIdx].RxTsc, 6);
996 pAd->SharedKey[apidx][KeyIdx].KeyLen = (UCHAR) pKey->KeyLength;
[all …]
Drtmp_wep.c236 UCHAR KeyIdx; in RTMPSoftDecryptWEP() local
248 KeyIdx = (*(pPayload + 3) & 0xc0) >> 6; in RTMPSoftDecryptWEP()
249 if (pGroupKey[KeyIdx].KeyLen == 0) in RTMPSoftDecryptWEP()
252 NdisMoveMemory(WEPKEY + 3, pGroupKey[KeyIdx].Key, pGroupKey[KeyIdx].KeyLen); in RTMPSoftDecryptWEP()
253 ARCFOUR_INIT(&pAd->PrivateInfo.WEPCONTEXT, WEPKEY, pGroupKey[KeyIdx].KeyLen + 3); in RTMPSoftDecryptWEP()
Drtusb_io.c1905 UINT32 KeyIdx; in CMDHandler() local
1911 KeyIdx = pWepKey->KeyIndex & 0x0fffffff; in CMDHandler()
1914 if ((KeyIdx >= 4) || ((pWepKey->KeyLength != 5) && (pWepKey->KeyLength != 13))) in CMDHandler()
1922 pAd->SharedKey[BSS0][KeyIdx].KeyLen = (UCHAR) pWepKey->KeyLength; in CMDHandler()
1923 NdisMoveMemory(pAd->SharedKey[BSS0][KeyIdx].Key, &pWepKey->KeyMaterial, pWepKey->KeyLength); in CMDHandler()
1924 CipherAlg = (pAd->SharedKey[BSS0][KeyIdx].KeyLen == 5)? CIPHER_WEP64 : CIPHER_WEP128; in CMDHandler()
1933 … pAd->MacTab.Content[BSSID_WCID].PairwiseKey.CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg; in CMDHandler()
1934 pAd->MacTab.Content[BSSID_WCID].PairwiseKey.KeyLen = pAd->SharedKey[BSS0][KeyIdx].KeyLen; in CMDHandler()
1936 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CipherAlg; in CMDHandler()
1944 pAd->StaCfg.DefaultKeyId = (UCHAR) KeyIdx; in CMDHandler()
[all …]
Dmlme.c7148 IN UCHAR KeyIdx, in AsicAddSharedKeyEntry() argument
7157 DBGPRINT(RT_DEBUG_TRACE, ("AsicAddSharedKeyEntry BssIndex=%d, KeyIdx=%d\n", BssIndex,KeyIdx)); in AsicAddSharedKeyEntry()
7160 …T_DEBUG_TRACE,("AsicAddSharedKeyEntry: %s key #%d\n", CipherName[CipherAlg], BssIndex*4 + KeyIdx)); in AsicAddSharedKeyEntry()
7180 offset = SHARED_KEY_TABLE_BASE + (4*BssIndex + KeyIdx)*HW_KEY_ENTRY_SIZE; in AsicAddSharedKeyEntry()
7201 …CE,("Read: SHARED_KEY_MODE_BASE at this Bss[%d] KeyIdx[%d]= 0x%x \n", BssIndex,KeyIdx, csr1.word)); in AsicAddSharedKeyEntry()
7204 if (KeyIdx == 0) in AsicAddSharedKeyEntry()
7206 else if (KeyIdx == 1) in AsicAddSharedKeyEntry()
7208 else if (KeyIdx == 2) in AsicAddSharedKeyEntry()
7215 if (KeyIdx == 0) in AsicAddSharedKeyEntry()
7217 else if (KeyIdx == 1) in AsicAddSharedKeyEntry()
[all …]
D2870_rtmp_init.c864 UCHAR KeyIdx, IVEIV[8]; in RTMPAddBSSIDCipher() local
874 KeyIdx = (UCHAR)pKey->KeyIndex&0xff; in RTMPAddBSSIDCipher()
876 if (KeyIdx > 4) in RTMPAddBSSIDCipher()
958 offset = SHARED_KEY_TABLE_BASE + (KeyIdx * HW_KEY_ENTRY_SIZE); in RTMPAddBSSIDCipher()
975 IVEIV[3] |= (KeyIdx<< 6); in RTMPAddBSSIDCipher()
Drtmp_init.c1981 USHORT KeyIdx; in NICInitializeAsic() local
2154 for (KeyIdx = 0; KeyIdx < 4; KeyIdx++) in NICInitializeAsic()
2156 RTMP_IO_WRITE32(pAd, SHARED_KEY_MODE_BASE + 4*KeyIdx, 0); in NICInitializeAsic()
2160 for (KeyIdx = 0; KeyIdx < 256; KeyIdx++) in NICInitializeAsic()
2162 RTMP_IO_WRITE32(pAd, MAC_WCID_ATTRIBUTE_BASE + (KeyIdx * HW_WCID_ATTRI_SIZE), 1); in NICInitializeAsic()
/drivers/staging/rt2860/common/
Drtmp_wep.c227 UCHAR KeyIdx; in RTMPSoftDecryptWEP() local
239 KeyIdx = (*(pPayload + 3) & 0xc0) >> 6; in RTMPSoftDecryptWEP()
240 if (pGroupKey[KeyIdx].KeyLen == 0) in RTMPSoftDecryptWEP()
243 NdisMoveMemory(WEPKEY + 3, pGroupKey[KeyIdx].Key, pGroupKey[KeyIdx].KeyLen); in RTMPSoftDecryptWEP()
244 ARCFOUR_INIT(&pAd->PrivateInfo.WEPCONTEXT, WEPKEY, pGroupKey[KeyIdx].KeyLen + 3); in RTMPSoftDecryptWEP()
Dcmm_info.c1072 ULONG KeyIdx; in RTMPWPARemoveKeyProc() local
1084 KeyIdx = pKey->KeyIndex & 0xff; in RTMPWPARemoveKeyProc()
1121 DBGPRINT(RT_DEBUG_TRACE,("RTMPWPARemoveKeyProc(KeyIdx=%ld)\n", KeyIdx)); in RTMPWPARemoveKeyProc()
1122 pAd->SharedKey[BSS0][KeyIdx].KeyLen = 0; in RTMPWPARemoveKeyProc()
1123 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_NONE; in RTMPWPARemoveKeyProc()
1124 AsicRemoveSharedKeyEntry(pAd, BSS0, (UCHAR)KeyIdx); in RTMPWPARemoveKeyProc()
1727 IN UCHAR KeyIdx, in RTMPAddWcidAttributeEntry() argument
1797 IVEIV = (KeyIdx <<6) | 0x20; in RTMPAddWcidAttributeEntry()
1802 IVEIV = (KeyIdx << 6); in RTMPAddWcidAttributeEntry()
1810 …ACE,("RTMPAddWcidAttributeEntry: WCID #%d, KeyIndex #%d, Alg=%s\n",Wcid, KeyIdx, CipherName[Cipher… in RTMPAddWcidAttributeEntry()
[all …]
Dmlme.c7092 IN UCHAR KeyIdx, in AsicAddSharedKeyEntry() argument
7104 DBGPRINT(RT_DEBUG_TRACE, ("AsicAddSharedKeyEntry BssIndex=%d, KeyIdx=%d\n", BssIndex,KeyIdx)); in AsicAddSharedKeyEntry()
7107 …T_DEBUG_TRACE,("AsicAddSharedKeyEntry: %s key #%d\n", CipherName[CipherAlg], BssIndex*4 + KeyIdx)); in AsicAddSharedKeyEntry()
7125 offset = SHARED_KEY_TABLE_BASE + (4*BssIndex + KeyIdx)*HW_KEY_ENTRY_SIZE; in AsicAddSharedKeyEntry()
7155 …CE,("Read: SHARED_KEY_MODE_BASE at this Bss[%d] KeyIdx[%d]= 0x%x \n", BssIndex,KeyIdx, csr1.word)); in AsicAddSharedKeyEntry()
7158 if (KeyIdx == 0) in AsicAddSharedKeyEntry()
7160 else if (KeyIdx == 1) in AsicAddSharedKeyEntry()
7162 else if (KeyIdx == 2) in AsicAddSharedKeyEntry()
7169 if (KeyIdx == 0) in AsicAddSharedKeyEntry()
7171 else if (KeyIdx == 1) in AsicAddSharedKeyEntry()
[all …]
Drtmp_init.c1887 USHORT KeyIdx; in NICInitializeAsic() local
2007 for (KeyIdx = 0; KeyIdx < 4; KeyIdx++) in NICInitializeAsic()
2009 RTMP_IO_WRITE32(pAd, SHARED_KEY_MODE_BASE + 4*KeyIdx, 0); in NICInitializeAsic()
2013 for (KeyIdx = 0; KeyIdx < 256; KeyIdx++) in NICInitializeAsic()
2015 RTMP_IO_WRITE32(pAd, MAC_WCID_ATTRIBUTE_BASE + (KeyIdx * HW_WCID_ATTRI_SIZE), 1); in NICInitializeAsic()
/drivers/staging/rt2870/
Dsta_ioctl.c363 ULONG KeyIdx; in RTMPAddKey() local
495 KeyIdx = pKey->KeyIndex & 0x0fffffff; in RTMPAddKey()
497 if (KeyIdx < 4) in RTMPAddKey()
529 KeyIdx, // The value may be not zero in RTMPAddKey()
538 pAd->StaCfg.DefaultKeyId = (UCHAR) KeyIdx; in RTMPAddKey()
541 pAd->SharedKey[BSS0][KeyIdx].KeyLen = (UCHAR) pKey->KeyLength; in RTMPAddKey()
542 NdisMoveMemory(pAd->SharedKey[BSS0][KeyIdx].Key, &pKey->KeyMaterial, pKey->KeyLength); in RTMPAddKey()
546 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP64; in RTMPAddKey()
548 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP128; in RTMPAddKey()
550 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg; in RTMPAddKey()
[all …]
Dtmp60363 ULONG KeyIdx;
495 KeyIdx = pKey->KeyIndex & 0x0fffffff;
497 if (KeyIdx < 4)
529 KeyIdx, // The value may be not zero
538 pAd->StaCfg.DefaultKeyId = (UCHAR) KeyIdx;
541 pAd->SharedKey[BSS0][KeyIdx].KeyLen = (UCHAR) pKey->KeyLength;
542 NdisMoveMemory(pAd->SharedKey[BSS0][KeyIdx].Key, &pKey->KeyMaterial, pKey->KeyLength);
546 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP64;
548 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP128;
550 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg;
[all …]
Dtmp61363 ULONG KeyIdx;
495 KeyIdx = pKey->KeyIndex & 0x0fffffff;
497 if (KeyIdx < 4)
529 KeyIdx, // The value may be not zero
538 pAd->StaCfg.DefaultKeyId = (UCHAR) KeyIdx;
541 pAd->SharedKey[BSS0][KeyIdx].KeyLen = (UCHAR) pKey->KeyLength;
542 NdisMoveMemory(pAd->SharedKey[BSS0][KeyIdx].Key, &pKey->KeyMaterial, pKey->KeyLength);
546 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP64;
548 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP128;
550 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg;
[all …]
Drt_profile.c693 …r_from_file(IN PRTMP_ADAPTER pAd,IN char *buffer,IN ULONG KeyType,IN INT BSSIdx,IN INT KeyIdx) in rtmp_parse_key_buffer_from_file() argument
696 INT i = BSSIdx, idx = KeyIdx; in rtmp_parse_key_buffer_from_file()
752 ULONG KeyIdx; in rtmp_read_key_parms_from_file() local
763 KeyIdx = simple_strtol(tmpbuf, 0, 10); in rtmp_read_key_parms_from_file()
764 if((KeyIdx >= 1 ) && (KeyIdx <= 4)) in rtmp_read_key_parms_from_file()
765 pAd->StaCfg.DefaultKeyId = (UCHAR) (KeyIdx - 1); in rtmp_read_key_parms_from_file()
Drtmp.h2487 UCHAR KeyIdx; member
4335 IN UCHAR KeyIdx,
4344 IN UCHAR KeyIdx);
4368 IN UCHAR KeyIdx,
5683 IN UCHAR KeyIdx,
6866 UCHAR KeyIdx; member
7084 IN ULONG KeyIdx,
/drivers/staging/rt2860/
Dsta_ioctl.c356 ULONG KeyIdx; in RTMPAddKey() local
486 KeyIdx = pKey->KeyIndex & 0x0fffffff; in RTMPAddKey()
488 if (KeyIdx < 4) in RTMPAddKey()
520 KeyIdx, // The value may be not zero in RTMPAddKey()
529 pAd->StaCfg.DefaultKeyId = (UCHAR) KeyIdx; in RTMPAddKey()
532 pAd->SharedKey[BSS0][KeyIdx].KeyLen = (UCHAR) pKey->KeyLength; in RTMPAddKey()
533 NdisMoveMemory(pAd->SharedKey[BSS0][KeyIdx].Key, &pKey->KeyMaterial, pKey->KeyLength); in RTMPAddKey()
537 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP64; in RTMPAddKey()
539 pAd->SharedKey[BSS0][KeyIdx].CipherAlg = CIPHER_WEP128; in RTMPAddKey()
541 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg; in RTMPAddKey()
[all …]
Drt_profile.c693 …r_from_file(IN PRTMP_ADAPTER pAd,IN char *buffer,IN ULONG KeyType,IN INT BSSIdx,IN INT KeyIdx) in rtmp_parse_key_buffer_from_file() argument
696 INT i = BSSIdx, idx = KeyIdx; in rtmp_parse_key_buffer_from_file()
752 ULONG KeyIdx; in rtmp_read_key_parms_from_file() local
763 KeyIdx = simple_strtol(tmpbuf, 0, 10); in rtmp_read_key_parms_from_file()
764 if((KeyIdx >= 1 ) && (KeyIdx <= 4)) in rtmp_read_key_parms_from_file()
765 pAd->StaCfg.DefaultKeyId = (UCHAR) (KeyIdx - 1); in rtmp_read_key_parms_from_file()
Drtmp.h2482 UCHAR KeyIdx; member
4251 IN UCHAR KeyIdx,
4260 IN UCHAR KeyIdx);
4284 IN UCHAR KeyIdx,
5586 IN UCHAR KeyIdx,
6748 UCHAR KeyIdx; member
6966 IN ULONG KeyIdx,
/drivers/staging/rt2860/sta/
Drtmp_data.c1377 UCHAR KeyIdx = 0xff; in STAFindCipherAlgorithm() local
1399 KeyIdx = 0; in STAFindCipherAlgorithm()
1410 KeyIdx = 1; in STAFindCipherAlgorithm()
1412 KeyIdx = 0; in STAFindCipherAlgorithm()
1415 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1418 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1422 KeyIdx = 1; in STAFindCipherAlgorithm()
1424 KeyIdx = 0; in STAFindCipherAlgorithm()
1428 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1434 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
[all …]
Ddls.c1952 UCHAR KeyIdx = 0; in MacTableInsertDlsEntry() local
1955 KeyIdx = pAd->StaCfg.DefaultKeyId; in MacTableInsertDlsEntry()
1957 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg; in MacTableInsertDlsEntry()
/drivers/staging/rt2870/sta/
Drtmp_data.c1392 UCHAR KeyIdx = 0xff; in STAFindCipherAlgorithm() local
1414 KeyIdx = 0; in STAFindCipherAlgorithm()
1425 KeyIdx = 1; in STAFindCipherAlgorithm()
1427 KeyIdx = 0; in STAFindCipherAlgorithm()
1430 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1433 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1437 KeyIdx = 1; in STAFindCipherAlgorithm()
1439 KeyIdx = 0; in STAFindCipherAlgorithm()
1443 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
1449 KeyIdx = pAd->StaCfg.DefaultKeyId; in STAFindCipherAlgorithm()
[all …]
Ddls.c1957 UCHAR KeyIdx = 0; in MacTableInsertDlsEntry() local
1960 KeyIdx = pAd->StaCfg.DefaultKeyId; in MacTableInsertDlsEntry()
1962 CipherAlg = pAd->SharedKey[BSS0][KeyIdx].CipherAlg; in MacTableInsertDlsEntry()