mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
[WLANCONF]
- Display fractional rates correctly (5.5 Mbps for example) svn path=/branches/wlan-bringup/; revision=54890
This commit is contained in:
parent
e1d32a01d0
commit
82f59adac9
1 changed files with 10 additions and 3 deletions
|
@ -514,9 +514,16 @@ WlanScan(HANDLE hAdapter)
|
|||
Rate = Rate & 0x7F;
|
||||
|
||||
/* SupportedRates are in units of .5 */
|
||||
Rate = Rate >> 1;
|
||||
|
||||
_tprintf(_T("%u "), Rate);
|
||||
if (Rate & 0x01)
|
||||
{
|
||||
/* Bit 0 is set so we need to add 0.5 */
|
||||
_tprintf(_T("%u.5 "), (Rate >> 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Bit 0 is clear so just print the conversion */
|
||||
_tprintf(_T("%u "), (Rate >> 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
_tprintf(_T("\n"));
|
||||
|
|
Loading…
Reference in a new issue