Only show the TX-power selector if the hardware supports more than one option.
authorDaniel Golle <daniel@makrotopia.org>
Mon, 18 Jun 2012 19:42:39 +0000 (19:42 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 18 Jun 2012 19:42:39 +0000 (19:42 +0000)
commitfb5d41c2a5aa751302375c0a31ca03d095145e93
tree02c098cb099f618cd7c113316bd2325cd876caaf
parent78fd18c8e99a7f0a07c9253b718bfbe6660710df
Only show the TX-power selector if the hardware supports more than one option.
Some mac80211 drivers (rt2x00) probably won't support limiting TX-power to a
user-defined value in the near future under certain conditions, so it makes
sense to not expose that option in order not to confuse the user.

See http://patchwork.openwrt.org/patch/2187/
to understand the situation.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua