diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-26 01:35:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-26 01:35:42 +0000 |
commit | e66ab6bd2ca3bf51f6951e9b293b7742cd1a86a1 (patch) | |
tree | 384997dc672bc641fcb72f669254243043d6513c /libs/iwinfo/src/iwinfo_wext.c | |
parent | 3b42dc16889bc10889e9f8cd56e0ab93b105086b (diff) |
libs/iwinfo: return bitrate in kilobits to properly handle .5 rates
Diffstat (limited to 'libs/iwinfo/src/iwinfo_wext.c')
-rw-r--r-- | libs/iwinfo/src/iwinfo_wext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/iwinfo/src/iwinfo_wext.c b/libs/iwinfo/src/iwinfo_wext.c index 311fd8ebbe..387cb13b44 100644 --- a/libs/iwinfo/src/iwinfo_wext.c +++ b/libs/iwinfo/src/iwinfo_wext.c @@ -189,7 +189,7 @@ int wext_get_bitrate(const char *ifname, int *buf) if(wext_ioctl(ifname, SIOCGIWRATE, &wrq) >= 0) { - *buf = (wrq.u.bitrate.value / 1000000); + *buf = (wrq.u.bitrate.value / 1000); return 0; } |