projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b9f50
)
ath9k_hw: Fix chip test
author
Sujith Manoharan
<
[email protected]
>
Tue, 4 Jan 2011 07:46:37 +0000
(13:16 +0530)
committer
John W. Linville
<
[email protected]
>
Mon, 10 Jan 2011 20:40:51 +0000
(15:40 -0500)
USB devices do not require the chip test routine.
Signed-off-by: Sujith Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hw.c
b/drivers/net/wireless/ath/ath9k/hw.c
index fde978665e07c63328e675823eb6d53f65fbf7c7..4a44f711045e3b74e5f5dad2aaa5a36a9fcc1890 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hw.c
+++ b/
drivers/net/wireless/ath/ath9k/hw.c
@@
-436,9
+436,10
@@
static int ath9k_hw_init_macaddr(struct ath_hw *ah)
static int ath9k_hw_post_init(struct ath_hw *ah)
{
+ struct ath_common *common = ath9k_hw_common(ah);
int ecode;
- if (
!AR_SREV_9271(ah)
) {
+ if (
common->bus_ops->ath_bus_type != ATH_USB
) {
if (!ath9k_hw_chip_test(ah))
return -ENODEV;
}