]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: vt665x: Text janitor in prep for driver merge
authorJim Lieb <lieb@canonical.com>
Thu, 30 Jul 2009 17:30:32 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:07 +0000 (12:02 -0700)
These changes in vt6656 match changes in vt6655 to minimize text differences
prior to merging the two trees into a single driver source.

Signed-off-by: Jim Lieb <lieb@canonical.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6656/80211mgr.c
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/hostap.c

index fda7224428c0fa5258088337765a673910db1aef..8b1ffe9f240593b00e29c3681714f7bf0f284d4c 100644 (file)
@@ -18,7 +18,7 @@
  *
  * File: 80211mgr.c
  *
- * Purpose: Handles the managment frame parsing functions
+ * Purpose: Handles the 802.11 managment support functions
  *
  * Author: Lyndon Chen
  *
@@ -746,7 +746,6 @@ vMgrDecodeProbeResponse(
     )
 {
     PWLAN_IE    pItem;
-  //  BYTE        byCheckEID = 0;
 
 
     pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
@@ -764,13 +763,6 @@ vMgrDecodeProbeResponse(
                        + 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)
index 7b43ceabecc0d5b0f88f0b7a8a104104d9e83a52..7057d3e3317e3509c2be90a1fdfd81f721dd5896 100644 (file)
@@ -743,7 +743,7 @@ BBuGetFrameTime (
         } else {
             uPreamble = 192;
         }
-        uFrameTime = (cbFrameLength * 80) / uRate;
+        uFrameTime = (cbFrameLength * 80) / uRate;  //?????
         uTmp = (uFrameTime * uRate) / 80;
         if (cbFrameLength != uTmp) {
             uFrameTime ++;
@@ -752,16 +752,16 @@ BBuGetFrameTime (
         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); //??????
     }
 }
 
index 887e93f9999543a9fe151dd2558d4a9771d8d352..02743a62b8fbff03cb832d8909d896b57d2b5380 100644 (file)
@@ -113,7 +113,7 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
     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));