Skip to contentSkip to conversation

ath9k_hw: fix device ID check for AR956x

PATCH Applied Felix Fietkau 2 participants 2 messages Jun 21, 2015 – Jul 11, 2015 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k_hw: fix device ID check for AR956x

Because of the missing return, the macVersion value was being overwritten with an invalid register read

---
 drivers/net/wireless/ath/ath9k/hw.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath9k/hw.c +1 -0
index 5e15e8e..a31a680 100644
@@ -279,6 +279,7 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
 		return;
 	case AR9300_DEVID_QCA956X:
 		ah->hw_version.macVersion = AR_SREV_VERSION_9561;
+		return;
 	}
 
 	val = REG_READ(ah, AR_SREV) & AR_SREV_ID;
Signature · 4 lines
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
Applied
#1 lore raw
Quoted 5 lines

Because of the missing return, the macVersion value was being overwritten with an invalid register read

Thanks, applied to wireless-drivers.git.

Kalle Valo