diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-22 12:02:35 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-22 12:02:35 +0000 |
commit | 7e6b24a8102e35991e5d4da8018fbdb7bc657ba5 (patch) | |
tree | 6a8a3926333a7b67ae62a1a603639e1b7c1fbce1 /package/iw/patches/110-fix_rate_calculation.patch | |
parent | aea6afefe696838bfbb22239018497a351c52a82 (diff) | |
download | mtk-20170518-7e6b24a8102e35991e5d4da8018fbdb7bc657ba5.zip mtk-20170518-7e6b24a8102e35991e5d4da8018fbdb7bc657ba5.tar.gz mtk-20170518-7e6b24a8102e35991e5d4da8018fbdb7bc657ba5.tar.bz2 |
iw: fix calculation of fractional multicast rates like 5.5Mbps due to wrong operator precedence
SVN-Revision: 26968
Diffstat (limited to 'package/iw/patches/110-fix_rate_calculation.patch')
-rw-r--r-- | package/iw/patches/110-fix_rate_calculation.patch | 11 |
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 0000000..e7328e3 --- /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--; + } |