Merge tag 'iwlwifi-next-for-kalle-2016-07-01' of git://git.kernel.org/pub/scm/linux...
[deliverable/linux.git] / drivers / net / wireless / intel / iwlwifi / iwl-drv.c
index 5c5b9f228ac68a1eaf0e79a5c6e7730d07819063..292fc8b516b7ffbbba030167f4cbd163c748e75e 100644 (file)
@@ -1253,7 +1253,10 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
        if (err)
                goto try_again;
 
-       api_ver = drv->fw.ucode_ver;
+       if (fw_has_api(&drv->fw.ucode_capa, IWL_UCODE_TLV_API_NEW_VERSION))
+               api_ver = drv->fw.ucode_ver;
+       else
+               api_ver = IWL_UCODE_API(drv->fw.ucode_ver);
 
        /*
         * api_ver should match the api version forming part of the
This page took 0.02548 seconds and 5 git commands to generate.