mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
iw: fix setting txpower (#10254)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28710 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
38ba6904bb
commit
c5994771e1
11
package/iw/patches/130-fix_txpower.patch
Normal file
11
package/iw/patches/130-fix_txpower.patch
Normal 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)
|
Loading…
Reference in New Issue
Block a user