summaryrefslogtreecommitdiffstats
path: root/package/iw/patches/110-fix_rate_calculation.patch
blob: e7328e39baef4f30fb1b2996b1cead4c5a016e72 (plain)
1
2
3
4
5
6
7
8
9
10
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--;
 	}