~victored/+junk/mt7601U-linux-driver-64bit

« back to all changes in this revision

Viewing changes to common/cmm_asic.c

  • Committer: Victor Martinez
  • Date: 2014-08-30 05:23:18 UTC
  • Revision ID: victoreduardm@gmail.com-20140830052318-vw5w8ug2k869byrn
Add 64-bit linux support, as per http://ubuntuforums.org/archive/index.php/t-2092888.html.

This fixes kernel panics and most connection drops.

Don't use this version in 32-bit systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1425
1425
        PUCHAR                  ptr;
1426
1426
        UINT i;
1427
1427
        ULONG beaconBaseLocation = 0;
1428
 
        USHORT                  beaconLen = (USHORT) pAd->BeaconTxWI.TxWIMPDUByteCnt;
 
1428
        USHORT                  beaconLen;
1429
1429
        UINT8 TXWISize = pAd->chipCap.TXWISize;
1430
1430
        UINT32 longptr;
1431
1431
        
1437
1437
        RTMPWIEndianChange(pAd, (PUCHAR)&localTxWI, TYPE_TXWI);
1438
1438
        beaconLen = (USHORT) localTxWI.TxWIMPDUByteCnt;
1439
1439
        }
 
1440
#else
 
1441
        beaconLen = pAd->BeaconTxWI.TxWIMPDUByteCnt;
1440
1442
#endif /* RT_BIG_ENDIAN */
1441
1443
 
1442
1444
        DBGPRINT(RT_DEBUG_TRACE, ("--->AsicEnableIbssSync(TxWIMPDUByteCnt=%d, beaconLen=%d)\n", pAd->BeaconTxWI.TxWIMPDUByteCnt, beaconLen));
3049
3051
        }
3050
3052
}
3051
3053
 
3052
 
#endif /* NEW_WOW_SUPPORT */
 
3054
#endif /* NEW_WOW_SUPPORT */
 
 
b'\\ No newline at end of file'