mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
bwn_lo_measure_gain_values: eliminate write only trsw_rx variable
Sponsored by: Netflix
This commit is contained in:
parent
87a4328651
commit
a9e022d3d7
1 changed files with 0 additions and 2 deletions
|
|
@ -2136,14 +2136,12 @@ bwn_lo_measure_gain_values(struct bwn_mac *mac, int16_t max_rx_gain,
|
|||
max_rx_gain = 0;
|
||||
|
||||
if (BWN_HAS_LOOPBACK(phy)) {
|
||||
int trsw_rx = 0;
|
||||
int trsw_rx_gain;
|
||||
|
||||
if (use_trsw_rx) {
|
||||
trsw_rx_gain = pg->pg_trsw_rx_gain / 2;
|
||||
if (max_rx_gain >= trsw_rx_gain) {
|
||||
trsw_rx_gain = max_rx_gain - trsw_rx_gain;
|
||||
trsw_rx = 0x20;
|
||||
}
|
||||
} else
|
||||
trsw_rx_gain = max_rx_gain;
|
||||
|
|
|
|||
Loading…
Reference in a new issue