From e97333cbc4285a655d00d4bc7a2249c69206b4e1 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 21 Jan 2006 10:45:07 +0000 Subject: [PATCH] Adjust tx power based on user preferences. --- sys/dev/usb/if_ural.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c index 505f1928d340..f1e474c12b0f 100644 --- a/sys/dev/usb/if_ural.c +++ b/sys/dev/usb/if_ural.c @@ -1687,6 +1687,9 @@ ural_set_chan(struct ural_softc *sc, struct ieee80211_channel *c) else power = 31; + /* adjust txpower using ifconfig settings */ + power -= (100 - ic->ic_txpowlimit) / 8; + DPRINTFN(2, ("setting channel to %u, txpower to %u\n", chan, power)); switch (sc->rf_rev) {