Changeset 14307


Ignore:
Timestamp:
2009-01-31T17:08:57+01:00 (9 years ago)
Author:
agb
Message:

[package] madwifi: mode txpower to wifi-device section, but remain backwards compatible

Location:
trunk/package/madwifi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/madwifi/Makefile

    r12992 r14307  
    1 #  
    2 # Copyright (C) 2006-2008 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1414ifneq ($(CONFIG_MADWIFI_UPSTREAM),) 
    1515  PKG_VERSION:=0.9.4 
    16   PKG_RELEASE:=1 
     16  PKG_RELEASE:=2 
    1717 
    1818  PKG_SOURCE:=madwifi-$(PKG_VERSION).tar.gz 
     
    2727  PKG_REV:=3314 
    2828  PKG_VERSION:=r$(PKG_REV) 
    29   PKG_RELEASE:=1 
     29  PKG_RELEASE:=2 
    3030 
    3131  PKG_SOURCE_PROTO:=svn 
  • trunk/package/madwifi/files/lib/wifi/madwifi.sh

    r14148 r14307  
    7979        config_get channel "$device" channel 
    8080        config_get vifs "$device" vifs 
     81        config_get txpower "$device" txpower 
    8182 
    8283        [ auto = "$channel" ] && channel=0 
     
    8485        local first=1 
    8586        for vif in $vifs; do 
    86                 local start_hostapd 
     87                local start_hostapd vif_txpower 
    8788                nosbeacon= 
    8889                config_get ifname "$vif" ifname 
     
    300301 
    301302                # TXPower settings only work if device is up already 
    302                 config_get txpwr "$vif" txpower 
    303                 [ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}" 
     303                # while atheros hardware theoretically is capable of per-vif (even per-packet) txpower 
     304                # adjustment it does not work with the current atheros hal/madwifi driver 
     305 
     306                config_get vif_txpower "$vif" txpower 
     307                # use vif_txpower (from wifi-iface) instead of txpower (from wifi-device) if 
     308                # the latter doesn't exist 
     309                txpower="${txpower:-$vif_txpower}" 
     310                [ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}" 
    304311 
    305312                case "$mode" in 
Note: See TracChangeset for help on using the changeset viewer.