diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-01 19:16:52 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-01 19:16:52 +0000 |
commit | c5994771e1b262cc2bbe5dfb3db0f3bd3747b3bd (patch) | |
tree | 02314e5738001b7b50af20004210511f643025cf /package/iw/patches | |
parent | 38ba6904bbaf0dbdebc9ee5b18b8eacec95dd8df (diff) |
iw: fix setting txpower (#10254)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28710 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iw/patches')
-rw-r--r-- | package/iw/patches/130-fix_txpower.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/iw/patches/130-fix_txpower.patch b/package/iw/patches/130-fix_txpower.patch new file mode 100644 index 000000000..9e0c2df32 --- /dev/null +++ b/package/iw/patches/130-fix_txpower.patch @@ -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) |