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:
966fb5e
)
ath9k: fix SC_OP_INVALID test in ath9k_tx99_init()
author
Dan Carpenter
<
[email protected]
>
Thu, 14 Nov 2013 10:01:18 +0000
(15:31 +0530)
committer
John W. Linville
<
[email protected]
>
Mon, 2 Dec 2013 19:24:57 +0000
(14:24 -0500)
SC_OP_INVALID is zero so the test is always false. We're supposed to be
testing the lowest bit instead.
Fixes: 89f927af7f33 ('ath9k: add TX99 support')
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/tx99.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/tx99.c
b/drivers/net/wireless/ath/ath9k/tx99.c
index 6668197c277c4bb12b7813ec4ea57d31409cfd17..c65c37fe1014ab8a196bbc6a88151d96ed059ead 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/tx99.c
+++ b/
drivers/net/wireless/ath/ath9k/tx99.c
@@
-99,7
+99,7
@@
static int ath9k_tx99_init(struct ath_softc *sc)
struct ath_tx_control txctl;
int r;
- if (
sc->sc_flags & SC_OP_INVALID
) {
+ if (
test_bit(SC_OP_INVALID, &sc->sc_flags)
) {
ath_err(common,
"driver is in invalid state unable to use TX99");
return -EINVAL;