include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mac80211
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mac80211
ifneq ($(CONFIG_LINUX_2_6_27)$(CONFIG_LINUX_2_6_28),)
PKG_VERSION:=2009-01-29
ifneq ($(CONFIG_LINUX_2_6_27)$(CONFIG_LINUX_2_6_28),)
PKG_VERSION:=2009-01-29
local device="$1"
config_get channel "$device" channel
config_get vifs "$device" vifs
local device="$1"
config_get channel "$device" channel
config_get vifs "$device" vifs
+ config_get txpower "$device" txpower
local first=1
for vif in $vifs; do
local first=1
for vif in $vifs; do
esac
config_get ssid "$vif" ssid
esac
config_get ssid "$vif" ssid
- config_get txpwr "$vif" txpower
- if [ -n "$txpwr" ]; then
- iwconfig "$ifname" txpower "${txpwr%%.*}"
- fi
+ config_get vif_txpower "$vif" txpower
+ # use vif_txpower (from wifi-iface) to override txpower (from
+ # wifi-device) if the latter doesn't exist
+ txpower="${txpower:-$vif_txpower}"
+ [ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
config_get frag "$vif" frag
if [ -n "$frag" ]; then
config_get frag "$vif" frag
if [ -n "$frag" ]; then