projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/iwinfo: return bitrate in kilobits to properly handle .5 rates
[project/luci.git]
/
libs
/
iwinfo
/
src
/
iwinfo_wext.c
diff --git
a/libs/iwinfo/src/iwinfo_wext.c
b/libs/iwinfo/src/iwinfo_wext.c
index
311fd8e
..
387cb13
100644
(file)
--- 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 / 1000
000
);
+ *buf = (wrq.u.bitrate.value / 1000);
return 0;
}