1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[package] iw: fix calculation of fractional multicast rates like 5.5Mbps due to wrong operator precedence

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26968 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2011-05-22 12:02:35 +00:00
parent 859eee5519
commit 030f9c1bee
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
--- a/ibss.c
+++ b/ibss.c
@@ -104,7 +104,7 @@ static int join_ibss(struct nl80211_stat
if (*end != '\0')
return 1;
- NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int) rate * 10);
+ NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int)(rate * 10));
argv++;
argc--;
}