diff options
-rw-r--r-- | src/common/tx_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tx_power.c b/src/common/tx_power.c index be96c3d3..862450bb 100644 --- a/src/common/tx_power.c +++ b/src/common/tx_power.c @@ -33,7 +33,7 @@ static int get_pa_drive_level_mdBm(const struct power_amp *pa, int desired_p_out_mdBm, unsigned int arfcn) { - if (arfcn > ARRAY_SIZE(pa->calib.gain_mdB)) + if (arfcn >= ARRAY_SIZE(pa->calib.gain_mdB)) return INT_MIN; /* FIXME: temperature compensation */ |