[package] iw: fix calculation of fractional multicast rates like 5.5Mbps due to wrong...
[openwrt/svn-archive/archive.git] / package / iw / patches / 110-fix_rate_calculation.patch
1 --- a/ibss.c
2 +++ b/ibss.c
3 @@ -104,7 +104,7 @@ static int join_ibss(struct nl80211_stat
4 if (*end != '\0')
5 return 1;
6
7 - NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int) rate * 10);
8 + NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int)(rate * 10));
9 argv++;
10 argc--;
11 }