aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath5k/base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index c8bb9bfb51fb..3b784358a7c9 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -396,7 +396,11 @@ ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val)
396 for (i = 0; i < ARRAY_SIZE(srev_names); i++) { 396 for (i = 0; i < ARRAY_SIZE(srev_names); i++) {
397 if (srev_names[i].sr_type != type) 397 if (srev_names[i].sr_type != type)
398 continue; 398 continue;
399 if ((val & 0xff) < srev_names[i + 1].sr_val) { 399
400 if ((val & 0xf0) == srev_names[i].sr_val)
401 name = srev_names[i].sr_name;
402
403 if ((val & 0xff) == srev_names[i].sr_val) {
400 name = srev_names[i].sr_name; 404 name = srev_names[i].sr_name;
401 break; 405 break;
402 } 406 }