diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 12:50:15 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 12:50:15 +0000 |
commit | 6babc9b91ab6cdd9305b270f269b8622c527a88e (patch) | |
tree | b1bd865ddc103600da0e66dbdaf6233a0ae3dd96 /package/madwifi/patches/438-poweroffset_sysctl.patch | |
parent | a81aed2f57aef263f83f31c8d405d086776f7415 (diff) |
move a few unmaintained packages from trunk to /packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33634 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/438-poweroffset_sysctl.patch')
-rw-r--r-- | package/madwifi/patches/438-poweroffset_sysctl.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/package/madwifi/patches/438-poweroffset_sysctl.patch b/package/madwifi/patches/438-poweroffset_sysctl.patch deleted file mode 100644 index e82046ec6..000000000 --- a/package/madwifi/patches/438-poweroffset_sysctl.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- a/ath/if_ath.c -+++ b/ath/if_ath.c -@@ -10476,11 +10476,11 @@ set_node_txpower(void *arg, struct ieee8 - * XXX: this function needs some locking to avoid being called - * twice/interrupted. Returns the value actually stored. */ - static u_int32_t --ath_set_clamped_maxtxpower(struct ath_softc *sc, -- u_int32_t new_clamped_maxtxpower) -+ath_set_clamped_maxtxpower(struct ath_softc *sc, u_int32_t new_txpwr) - { -- new_clamped_maxtxpower -= sc->sc_poweroffset; -- (void)ath_hal_settxpowlimit(sc->sc_ah, new_clamped_maxtxpower); -+ new_txpwr = ((new_txpwr < sc->sc_poweroffset) ? 0 : -+ new_txpwr - sc->sc_poweroffset); -+ (void)ath_hal_settxpowlimit(sc->sc_ah, new_txpwr); - return ath_get_clamped_maxtxpower(sc); - } - -@@ -11031,6 +11031,7 @@ enum { - ATH_DEBUG, - ATH_TXANTENNA, - ATH_RXANTENNA, -+ ATH_POWEROFFSET, - ATH_DIVERSITY, - ATH_TXINTRPERIOD, - ATH_FFTXQMIN, -@@ -11311,6 +11312,9 @@ ATH_SYSCTL_DECL(ath_sysctl_halparam, ctl - ath_debug_global = (val & ATH_DEBUG_GLOBAL); - #endif - break; -+ case ATH_POWEROFFSET: -+ sc->sc_poweroffset = val; -+ break; - case ATH_TXANTENNA: - /* - * antenna can be: -@@ -11478,6 +11482,9 @@ ATH_SYSCTL_DECL(ath_sysctl_halparam, ctl - case ATH_DEBUG: - val = sc->sc_debug | ath_debug_global; - break; -+ case ATH_POWEROFFSET: -+ val = sc->sc_poweroffset; -+ break; - case ATH_TXANTENNA: - val = sc->sc_txantenna; - break; -@@ -11619,6 +11626,12 @@ static const ctl_table ath_sysctl_templa - }, - #endif - { .ctl_name = CTL_AUTO, -+ .procname = "poweroffset", -+ .mode = 0644, -+ .proc_handler = ath_sysctl_halparam, -+ .extra2 = (void *)ATH_POWEROFFSET, -+ }, -+ { .ctl_name = CTL_AUTO, - .procname = "txantenna", - .mode = 0644, - .proc_handler = ath_sysctl_halparam, |