iw: fix setting txpower (#10254)

SVN-Revision: 28710
lede-17.01
Felix Fietkau 2011-11-01 19:16:52 +00:00
parent 4c985724af
commit 2afada967c
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,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)