projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
509a106
)
ath5k: Fix SREV reporting after SREV updates
author
Nick Kossifidis
<mick@madwifi.org>
Sun, 28 Sep 2008 22:24:44 +0000
(
01:24
+0300)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 30 Sep 2008 18:07:26 +0000
(14:07 -0400)
* Fix srev reporting during attach
Changes-Licensed-under: ISC
Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath5k/base.c
b/drivers/net/wireless/ath5k/base.c
index
c8bb9bf
..
3b78435
100644
(file)
--- 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)
for (i = 0; i < ARRAY_SIZE(srev_names); i++) {
if (srev_names[i].sr_type != type)
continue;
- if ((val & 0xff) < srev_names[i + 1].sr_val) {
+
+ if ((val & 0xf0) == srev_names[i].sr_val)
+ name = srev_names[i].sr_name;
+
+ if ((val & 0xff) == srev_names[i].sr_val) {
name = srev_names[i].sr_name;
break;
}