All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add support opensource firmware
@ 2013-04-04 16:49 Eugene Krasnikov
  0 siblings, 0 replies; only message in thread
From: Eugene Krasnikov @ 2013-04-04 16:49 UTC (permalink / raw)
  To: ath9k-devel

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

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index 716058b..502a1b2 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -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 <adrian@freebsd.org>:
> On 5 April 2013 09:50, Eugene Krasnikov <k.eugene.e@gmail.com> wrote:
>> 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



-- 
Best regards,
Eugene

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-04 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 16:49 [PATCH] Add support opensource firmware Eugene Krasnikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.