summaryrefslogtreecommitdiff
path: root/package/iw/patches/130-fix_txpower.patch
blob: 9e0c2df323e5067775a82e060fdf2a3927b8818b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/phy.c
+++ b/phy.c
@@ -277,7 +277,7 @@ static int handle_txpower(struct nl80211
 		}
 
 		mbm = strtol(argv[1], &endptr, 10);
-		if (!*endptr)
+		if (*endptr)
 			return 2;
 		NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_TX_POWER_LEVEL, mbm);
 	} else if (argc != 1)