Lines Matching +full:max +full:- +full:rt

3 /*-
6 * Copyright (c) 2015-2016 Andriy Voskoboinyk <avos@FreeBSD.org>
73 return (-1); in r88e_get_power_group()
76 KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags)); in r88e_get_power_group()
77 return (-1); in r88e_get_power_group()
87 const struct ieee80211com *ic = &sc->sc_ic; in r88e_get_txpower()
88 struct r92c_softc *rs = sc->sc_priv; in r88e_get_txpower()
89 const struct rtwn_r88e_txpwr *rt = rs->rs_txpwr; in r88e_get_txpower() local
95 if (group == -1) { /* shouldn't happen */ in r88e_get_txpower()
96 device_printf(sc->sc_dev, "%s: incorrect channel\n", __func__); in r88e_get_txpower()
107 max_mcs = RTWN_RIDX_HT_MCS(sc->ntxchains * 8 - 1); in r88e_get_txpower()
110 /* Compute per-CCK rate Tx power. */ in r88e_get_txpower()
116 cckpow = rt->cck_tx_pwr[group]; in r88e_get_txpower()
117 if (cckpow > ic->ic_txpowlimit) in r88e_get_txpower()
118 cckpow = ic->ic_txpowlimit; in r88e_get_txpower()
127 cckpow = cckpow - 9; in r88e_get_txpower()
133 htpow = rt->ht40_tx_pwr[group]; in r88e_get_txpower()
135 /* Compute per-OFDM rate Tx power. */ in r88e_get_txpower()
136 ofdmpow = htpow + rt->ofdm_tx_pwr_diff; in r88e_get_txpower()
137 if (ofdmpow > ic->ic_txpowlimit) in r88e_get_txpower()
138 ofdmpow = ic->ic_txpowlimit; in r88e_get_txpower()
142 bw20pow = htpow + rt->bw20_tx_pwr_diff; in r88e_get_txpower()
143 if (bw20pow > ic->ic_txpowlimit) in r88e_get_txpower()
144 bw20pow = ic->ic_txpowlimit; in r88e_get_txpower()
148 /* Apply max limit */ in r88e_get_txpower()
158 struct r92c_softc *rs = sc->sc_priv; in r88e_set_bw20()
167 (rs->rf_chnlbw[0] & ~0xfff) | chan | R88E_RF_CHNLBW_BW20); in r88e_set_bw20()