[WLANCONF]

- Display fractional rates correctly (5.5 Mbps for example)

svn path=/branches/wlan-bringup/; revision=54890
This commit is contained in:
Cameron Gutman 2012-01-09 20:19:33 +00:00
parent e1d32a01d0
commit 82f59adac9

View file

@ -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"));