mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
2afada967c
SVN-Revision: 28710
12 lines
263 B
Diff
12 lines
263 B
Diff
--- 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)
|