mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Adjust tx power based on user preferences.
This commit is contained in:
parent
3f2e28fe9f
commit
e97333cbc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154626
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue