Skip to contentSkip to conversation

Add support opensource firmware

PATCH New Eugene Krasnikov 1 participant 1 message Apr 4, 2013 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support opensource firmware

Opensource firmware was branched out and now driver must support both new opensource and old proprietary firmwares.

---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index 716058b..502a1b2 100644

drivers/net/wireless/ath/ath9k/htc_drv_init.c +0 -0
@@ -795,8 +795,8 @@ static int ath9k_init_firmware_version(struct

ath9k_htc_priv *priv)
* Check if the available FW matches the driver's
* required version.
*/
- if (priv->fw_version_major != MAJOR_VERSION_REQ ||
- priv->fw_version_minor != MINOR_VERSION_REQ) {
+ if (!(priv->fw_version_major == MAJOR_VERSION_REQ &&

+        priv->fw_version_minor >= MINOR_VERSION_REQ)) {
         dev_err(priv->dev, "ath9k_htc: Please upgrade to FW version %d.%d\n",
             MAJOR_VERSION_REQ, MINOR_VERSION_REQ);
         return -EINVAL;

--
1.7.9.5

2013/4/5 Adrian Chadd <[email protected]>:

Quoted 24 lines · Eugene Krasnikov
Quoted 6 lines

Adrian,

By the way do you know if 1.1 and 1.3 are compatible?
If they not then more tricky logic is required. E.g. starting from 2.0 compare only major version but before 2.0 use old logic to compare if driver and fw compatible.

No, I think 1.1 and 1.3 are incompatible. And we don't really support 1.1; I'd have to go find the code in the internal github repo in order to even be able to build a 1.1 era firmware.

I'd rather we bite the bullet and leave people needing to run >= 1.3.

And yes, once we migrate to a "2.0" firmware, it'll be a major jump. ath9k_htc just won't be backwards compatible at that point with 1.x. So that check will go away.

So it's enough for now to say if (major == 1 && minor >= 3).

Thanks,

Adrian

Signature · 2 lines
Best regards,
Eugene