Lines Matching refs:pAd
123 pAd Pointer to our adapter
138 void RTMPInitWepEngine(struct rt_rtmp_adapter *pAd,
151 pAd->PrivateInfo.FCSCRC32 = PPPINITFCS32; /*Init crc32. */
157 WEPKEY[i] = RandomByte(pAd); /*Call mlme RandomByte() function. */
158 ARCFOUR_INIT(&pAd->PrivateInfo.WEPCONTEXT, WEPKEY, KeyLen + 3); /*INIT SBOX, KEYLEN+3(IV) */
173 pAd Pointer to our adapter
187 void RTMPEncryptData(struct rt_rtmp_adapter *pAd,
190 pAd->PrivateInfo.FCSCRC32 =
191 RTMP_CALC_FCS32(pAd->PrivateInfo.FCSCRC32, pSrc, Len);
192 ARCFOUR_ENCRYPT(&pAd->PrivateInfo.WEPCONTEXT, pDest, pSrc, Len);
214 BOOLEAN RTMPSoftDecryptWEP(struct rt_rtmp_adapter *pAd,
239 ARCFOUR_INIT(&pAd->PrivateInfo.WEPCONTEXT, WEPKEY,
241 ARCFOUR_DECRYPT(&pAd->PrivateInfo.WEPCONTEXT, pPayload, pPayload + 4,
466 void RTMPSetICV(struct rt_rtmp_adapter *pAd, u8 *pDest)
468 pAd->PrivateInfo.FCSCRC32 ^= 0xffffffff; /* complement */
469 pAd->PrivateInfo.FCSCRC32 = cpu2le32(pAd->PrivateInfo.FCSCRC32);
471 ARCFOUR_ENCRYPT(&pAd->PrivateInfo.WEPCONTEXT, pDest,
472 (u8 *)& pAd->PrivateInfo.FCSCRC32, 4);