Date:2011-05-22 14:02:35 (12 years 10 months ago)
Author:jow
Commit:7a9dd454ad7035db278a5219332327ca082a20f8
Message:[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
Files: package/iw/Makefile (2 diffs)
package/iw/patches/110-fix_rate_calculation.patch (1 diff)

Change Details

package/iw/Makefile
11#
2# Copyright (C) 2007-2009 OpenWrt.org
2# Copyright (C) 2007-2011 OpenWrt.org
33#
44# This is free software, licensed under the GNU General Public License v2.
55# See /LICENSE for more information.
...... 
99
1010PKG_NAME:=iw
1111PKG_VERSION:=0.9.22
12PKG_RELEASE:=1
12PKG_RELEASE:=2
1313
1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
1515PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
package/iw/patches/110-fix_rate_calculation.patch
1--- a/ibss.c
2@@ -104,7 +104,7 @@ static int join_ibss(struct nl80211_stat
3         if (*end != '\0')
4             return 1;
5
6- NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int) rate * 10);
7+ NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int)(rate * 10));
8         argv++;
9         argc--;
10     }

Archive Download the corresponding diff file



interactive