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

« back to all changes in this revision

Viewing changes to common/mlme.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:
541
541
#endif /* RALINK_ATE */
542
542
                /* for performace enchanement */
543
543
                NdisZeroMemory(&pAd->RalinkCounters,
544
 
                                                (UINT32)&pAd->RalinkCounters.OneSecEnd -
545
 
                                                (UINT32)&pAd->RalinkCounters.OneSecStart);
 
544
                                                (UINT32)(&pAd->RalinkCounters.OneSecEnd -
 
545
                                                         &pAd->RalinkCounters.OneSecStart));
546
546
 
547
547
        return;
548
548
}
5817
5817
        return TRUE;
5818
5818
}
5819
5819
#endif /* ED_MONITOR */
5820