summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_madwifi.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-26 01:35:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-26 01:35:42 +0000
commite66ab6bd2ca3bf51f6951e9b293b7742cd1a86a1 (patch)
tree384997dc672bc641fcb72f669254243043d6513c /libs/iwinfo/src/iwinfo_madwifi.c
parent3b42dc16889bc10889e9f8cd56e0ab93b105086b (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.c2
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;
}