aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/tx_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/tx_power.c')
-rw-r--r--src/common/tx_power.c2
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 */