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_madwifi.c | |
parent | 3b42dc16889bc10889e9f8cd56e0ab93b105086b (diff) |
libs/iwinfo: return bitrate in kilobits to properly handle .5 rates
Diffstat (limited to 'libs/iwinfo/src/iwinfo_madwifi.c')
-rw-r--r-- | libs/iwinfo/src/iwinfo_madwifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/iwinfo/src/iwinfo_madwifi.c b/libs/iwinfo/src/iwinfo_madwifi.c index e09d49b1e..e2bde1c14 100644 --- a/libs/iwinfo/src/iwinfo_madwifi.c +++ b/libs/iwinfo/src/iwinfo_madwifi.c @@ -175,7 +175,7 @@ int madwifi_get_bitrate(const char *ifname, int *buf) } while (len >= sizeof(struct ieee80211req_sta_info)); } - *buf = (rate == 0 || rate_count == 0) ? 0 : (rate / rate_count); + *buf = (rate == 0 || rate_count == 0) ? 0 : (rate / rate_count) * 1000; return 0; } |