aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorDamien Bergamini <damien@FreeBSD.org>2006-01-21 10:45:07 +0000
committerDamien Bergamini <damien@FreeBSD.org>2006-01-21 10:45:07 +0000
commite97333cbc4285a655d00d4bc7a2249c69206b4e1 (patch)
tree017066c01f8f09fba46737b92a9890031d677307 /sys/dev/usb
parent3f2e28fe9ffbb70d26e5cc7abba248e981434853 (diff)
Notes
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_ural.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c
index 505f1928d3406..f1e474c12b0f4 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) {