diff options
Diffstat (limited to 'libs/iwinfo/src/iwinfo_wl.c')
-rw-r--r-- | libs/iwinfo/src/iwinfo_wl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/iwinfo/src/iwinfo_wl.c b/libs/iwinfo/src/iwinfo_wl.c index 8387b9f4c8..8519dbc561 100644 --- a/libs/iwinfo/src/iwinfo_wl.c +++ b/libs/iwinfo/src/iwinfo_wl.c @@ -139,7 +139,7 @@ int wl_get_bitrate(const char *ifname, int *buf) int rate = 0; if( !(ret = wl_ioctl(ifname, WLC_GET_RATE, &rate, sizeof(rate))) && (rate > 0)) - *buf = rate / 2; + *buf = ((rate / 2) * 1000) + ((rate & 1) ? 500 : 0); return ret; } |