81 pBSSNode->bWPA2Valid =
FALSE;
84 for (ii=0; ii < 4; ii ++)
86 pBSSNode->wCSSPKCount = 1;
87 for (ii=0; ii < 4; ii ++)
89 pBSSNode->wAKMSSAuthCount = 1;
90 pBSSNode->sRSNCapObj.bRSNCapExist =
FALSE;
91 pBSSNode->sRSNCapObj.wRSNCap = 0;
124 if (pRSN->
len == 2) {
126 pBSSNode->bWPA2Valid =
TRUE;
142 pbyOUI = &(pRSN->
abyRSN[0]);
160 if (pRSN->
len == 6) {
161 pBSSNode->bWPA2Valid =
TRUE;
165 if (pRSN->
len >= 8) {
166 pBSSNode->wCSSPKCount = *((
PWORD) &(pRSN->
abyRSN[4]));
168 pbyOUI = &(pRSN->
abyRSN[6]);
170 for (i = 0; (i < pBSSNode->wCSSPKCount) && (j <
sizeof(pBSSNode->abyCSSPK)/
sizeof(
BYTE)); i++) {
172 if (pRSN->
len >= 8+i*4+4) {
197 if (bUseGK ==
TRUE) {
207 if ((pBSSNode->wCSSPKCount != 0) && (j == 0)) {
211 pBSSNode->wCSSPKCount = (
WORD)j;
217 if (pRSN->
len >= 10+m*4) {
218 pBSSNode->wAKMSSAuthCount = *((
PWORD) &(pRSN->
abyRSN[6+4*m]));
220 pbyOUI = &(pRSN->
abyRSN[8+4*
m]);
221 for (i = 0; (i < pBSSNode->wAKMSSAuthCount) && (j <
sizeof(pBSSNode->abyAKMSSAuthType)/
sizeof(
BYTE)); i++) {
222 if (pRSN->
len >= 10+(m+i)*4+4) {
234 pBSSNode->wAKMSSAuthCount = (
WORD)j;
238 if (pRSN->
len >= 12+4*m+4*
n) {
239 pBSSNode->sRSNCapObj.bRSNCapExist =
TRUE;
240 pBSSNode->sRSNCapObj.wRSNCap = *((
PWORD) &(pRSN->
abyRSN[8+4*m+4*
n]));
244 pBSSNode->bWPA2Valid =
TRUE;
273 if (pRSNIEs ==
NULL) {
280 pbyBuffer = (
PBYTE) pRSNIEs;
285 pRSNIEs->
abyRSN[0] = 0x00;
286 pRSNIEs->
abyRSN[1] = 0x0F;
287 pRSNIEs->
abyRSN[2] = 0xAC;
301 pRSNIEs->
abyRSN[6] = 0x00;
302 pRSNIEs->
abyRSN[7] = 0x0F;
303 pRSNIEs->
abyRSN[8] = 0xAC;
318 pRSNIEs->
abyRSN[12] = 0x00;
319 pRSNIEs->
abyRSN[13] = 0x0F;
320 pRSNIEs->
abyRSN[14] = 0xAC;
345 pbyBuffer = &pRSNIEs->
abyRSN[20];
348 gsPMKIDCache.BSSIDInfo[ii].abyBSSID[0],
359 pRSNIEs->
len += (2 + (*pwPMKID)*16);
361 pbyBuffer = &pRSNIEs->
abyRSN[18];