Lines Matching defs:pEid
250 struct rt_eid * pEid;
323 pEid = (struct rt_eid *) Ptr;
326 while ((Length + 2 + pEid->Len) <= MsgLen) {
330 if ((*LengthVIE + pEid->Len + 2) >= MAX_VIE_LEN) {
333 (*LengthVIE + pEid->Len + 2), MAX_VIE_LEN));
337 switch (pEid->Eid) {
342 if (pEid->Len <= MAX_LEN_OF_SSID) {
343 NdisMoveMemory(Ssid, pEid->Octet, pEid->Len);
344 *pSsidLen = pEid->Len;
349 pEid->Len));
355 if (pEid->Len <= MAX_LEN_OF_SUPPORTED_RATES) {
357 NdisMoveMemory(SupRate, pEid->Octet, pEid->Len);
358 *pSupRateLen = pEid->Len;
368 pEid->Len));
374 if (pEid->Len >= SIZE_HT_CAP_IE) /*Note: allow extension! */
376 NdisMoveMemory(pHtCapability, pEid->Octet,
392 &pEid->Eid,
393 pEid->Len + 2);
394 *LengthVIE += (pEid->Len + 2);
398 ("PeerBeaconAndProbeRspSanity - wrong IE_HT_CAP. pEid->Len = %d\n",
399 pEid->Len));
404 if (pEid->Len >= sizeof(struct rt_add_ht_info_ie)) {
407 NdisMoveMemory(AddHtInfo, pEid->Octet,
423 &pEid->Eid,
424 pEid->Len + 2);
425 *LengthVIE += (pEid->Len + 2);
434 if (pEid->Len == 1) {
435 *NewExtChannelOffset = pEid->Octet[0];
448 if (pEid->Len == 1) {
449 *pChannel = *pEid->Octet;
462 pEid->Len));
468 if (pEid->Len == 6) {
470 pCfParm->CfpCount = pEid->Octet[0];
471 pCfParm->CfpPeriod = pEid->Octet[1];
473 pEid->Octet[2] + 256 * pEid->Octet[3];
475 pEid->Octet[4] + 256 * pEid->Octet[5];
484 if (pEid->Len == 2) {
485 NdisMoveMemory(pAtimWin, pEid->Octet,
486 pEid->Len);
496 GetTimBit((char *)pEid, pAd->StaActive.Aid,
502 if (pEid->Len == 3) {
503 *pNewChannel = pEid->Octet[1]; /*extract new channel number */
514 /*if (NdisEqualMemory(pEid->Octet, BROADCOM_OUI, 3) && (pEid->Len >= 4))
516 if ((pEid->Octet[3] == OUI_BROADCOM_HT) && (pEid->Len >= 30))
519 NdisMoveMemory(pHtCapability, &pEid->Octet[4], sizeof(struct rt_ht_capability_ie));
523 if ((pEid->Octet[3] == OUI_BROADCOM_HT) && (pEid->Len >= 26))
526 NdisMoveMemory(AddHtInfo, &pEid->Octet[4], sizeof(struct rt_add_ht_info_ie));
533 if (NdisEqualMemory(pEid->Octet, RALINK_OUI, 3)
534 && (pEid->Len == 7)) {
535 /**pRalinkIe = pEid->Octet[3]; */
536 if (pEid->Octet[3] != 0)
537 *pRalinkIe = pEid->Octet[3];
546 && NdisEqualMemory(pEid->Octet, PRE_N_HT_OUI,
547 3) && (pEid->Len >= 4)
549 if ((pEid->Octet[3] == OUI_PREN_HT_CAP)
550 && (pEid->Len >= 30)
553 &pEid->Octet[4],
559 if ((pEid->Octet[3] == OUI_PREN_ADD_HT)
560 && (pEid->Len >= 26)) {
562 &pEid->Octet[4],
566 } else if (NdisEqualMemory(pEid->Octet, WPA_OUI, 4)) {
569 NdisMoveMemory(Ptr + *LengthVIE, &pEid->Eid,
570 pEid->Len + 2);
571 *LengthVIE += (pEid->Len + 2);
573 if (NdisEqualMemory(pEid->Octet, WME_PARM_ELEM, 6)
574 && (pEid->Len == 24)) {
580 pEdcaParm->bQAck = FALSE; /* pEid->Octet[0] & 0x10; */
581 pEdcaParm->bQueueRequest = FALSE; /* pEid->Octet[0] & 0x20; */
582 pEdcaParm->bTxopRequest = FALSE; /* pEid->Octet[0] & 0x40; */
584 pEid->Octet[6] & 0x0f;
586 (pEid->Octet[6] & 0x80) ? 1 : 0;
587 ptr = &pEid->Octet[8];
598 if (NdisEqualMemory(pEid->Octet, WME_INFO_ELEM, 6)
599 && (pEid->Len == 7)) {
602 pEdcaParm->bQAck = FALSE; /* pEid->Octet[0] & 0x10; */
603 pEdcaParm->bQueueRequest = FALSE; /* pEid->Octet[0] & 0x20; */
604 pEdcaParm->bTxopRequest = FALSE; /* pEid->Octet[0] & 0x40; */
606 pEid->Octet[6] & 0x0f;
608 (pEid->Octet[6] & 0x80) ? 1 : 0;
642 if (pEid->Len <= MAX_LEN_OF_SUPPORTED_RATES) {
643 NdisMoveMemory(ExtRate, pEid->Octet, pEid->Len);
644 *pExtRateLen = pEid->Len;
655 if (pEid->Len == 1) {
656 *pErp = (u8)pEid->Octet[0];
664 if (pEid->Len < (CKIP_NEGOTIATION_LENGTH - 2))
668 *pCkipFlag = *(pEid->Octet + 8);
674 if (pEid->Len != 0x06)
678 if (NdisEqualMemory(pEid->Octet, CISCO_OUI, 3) == 1)
679 *pAironetCellPowerLimit = *(pEid->Octet + 4);
685 if (RTMPEqualMemory(pEid->Octet + 2, RSN_OUI, 3)) {
688 NdisMoveMemory(Ptr + *LengthVIE, &pEid->Eid,
689 pEid->Len + 2);
690 *LengthVIE += (pEid->Len + 2);
698 Length = Length + 2 + pEid->Len; /* Eid[1] + Len[1]+ content[Len] */
699 pEid = (struct rt_eid *) ((u8 *) pEid + 2 + pEid->Len);