*
* File: 80211mgr.c
*
- * Purpose: Handles the managment frame parsing functions
+ * Purpose: Handles the 802.11 managment support functions
*
* Author: Lyndon Chen
*
)
{
PWLAN_IE pItem;
- // BYTE byCheckEID = 0;
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
+ WLAN_PROBERESP_OFF_SSID);
while( ((PBYTE)pItem) < (pFrame->pBuf + pFrame->len) ) {
-
- //20080701-01,<Remark> by Mike Liu
- // if (pItem->byElementID < byCheckEID)
- // break;
- //else
- //byCheckEID = pItem->byElementID;
-
switch (pItem->byElementID) {
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
} else {
uPreamble = 192;
}
- uFrameTime = (cbFrameLength * 80) / uRate;
+ uFrameTime = (cbFrameLength * 80) / uRate; //?????
uTmp = (uFrameTime * uRate) / 80;
if (cbFrameLength != uTmp) {
uFrameTime ++;
return (uPreamble + uFrameTime);
}
else {
- uFrameTime = (cbFrameLength * 8 + 22) / uRate;
+ uFrameTime = (cbFrameLength * 8 + 22) / uRate; //????????
uTmp = ((uFrameTime * uRate) - 22) / 8;
if(cbFrameLength != uTmp) {
uFrameTime ++;
}
- uFrameTime = uFrameTime * 4;
+ uFrameTime = uFrameTime * 4; //???????
if(byPktType != PK_TYPE_11A) {
uFrameTime += 6;
}
- return (20 + uFrameTime);
+ return (20 + uFrameTime); //??????
}
}
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Enabling hostapd mode\n", dev->name);
pDevice->apdev = (struct net_device *)kmalloc(sizeof(struct net_device), GFP_KERNEL);
- if (pDevice->apdev == NULL)
+ if (pDevice->apdev == NULL)
return -ENOMEM;
memset(pDevice->apdev, 0, sizeof(struct net_device));