aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath5k/phy.c')
-rw-r--r--drivers/net/wireless/ath5k/phy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c
index 248c0f545f24..405195ffb24d 100644
--- a/drivers/net/wireless/ath5k/phy.c
+++ b/drivers/net/wireless/ath5k/phy.c
@@ -1178,6 +1178,9 @@ static int ath5k_hw_rf5112_rfregs(struct ath5k_hw *ah,
1178 (channel->center_freq >= 5260 ? 1 : 1178 (channel->center_freq >= 5260 ? 1 :
1179 (channel->center_freq > 4000 ? 0 : -1))); 1179 (channel->center_freq > 4000 ? 0 : -1)));
1180 1180
1181 if (obdb == -1)
1182 return -EINVAL;
1183
1181 if (!ath5k_hw_rfregs_op(rf, ah->ah_offset[6], 1184 if (!ath5k_hw_rfregs_op(rf, ah->ah_offset[6],
1182 ee->ee_ob[ee_mode][obdb], 3, 279, 0, true)) 1185 ee->ee_ob[ee_mode][obdb], 3, 279, 0, true))
1183 return -EINVAL; 1186 return -EINVAL;