summaryrefslogtreecommitdiff
path: root/package/iw/patches
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-22 12:02:35 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-22 12:02:35 +0000
commit030f9c1bee27e6d29cb0b9e6011481ed2f66685d (patch)
tree64783916f47a93a029e9ef4b50ef2961b74181a2 /package/iw/patches
parent859eee55191418ab698e58d28b8c80eb8afa582b (diff)
[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
Diffstat (limited to 'package/iw/patches')
-rw-r--r--package/iw/patches/110-fix_rate_calculation.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/iw/patches/110-fix_rate_calculation.patch b/package/iw/patches/110-fix_rate_calculation.patch
new file mode 100644
index 0000000000..e7328e39ba
--- /dev/null
+++ b/package/iw/patches/110-fix_rate_calculation.patch
@@ -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--;
+ }