diff options
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index bce825b9ff1b..f7c424dcac66 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -1100,7 +1100,8 @@ ath5k_mode_setup(struct ath5k_softc *sc) | |||
1100 | static inline int | 1100 | static inline int |
1101 | ath5k_hw_to_driver_rix(struct ath5k_softc *sc, int hw_rix) | 1101 | ath5k_hw_to_driver_rix(struct ath5k_softc *sc, int hw_rix) |
1102 | { | 1102 | { |
1103 | WARN_ON(hw_rix < 0 || hw_rix > AR5K_MAX_RATES); | 1103 | WARN(hw_rix < 0 || hw_rix >= AR5K_MAX_RATES, |
1104 | "hw_rix out of bounds: %x\n", hw_rix); | ||
1104 | return sc->rate_idx[sc->curband->band][hw_rix]; | 1105 | return sc->rate_idx[sc->curband->band][hw_rix]; |
1105 | } | 1106 | } |
1106 | 1107 | ||