• R
    iwlwifi: rely on API version read from firmware · a0987a8d
    Reinette Chatre 提交于
    This adds the infrastructure to support older firmware APIs.
    The API version number is stored as part of the filename, we first try to
    load the most recent firmware and progressively try lower versions.
    The API version is also read from the firmware self and stored as part
    of the iwl_priv structure. Only firmware that is supported by driver will
    be loaded. The version number read from firmware is compared
    to supported versions in the driver not the API version used as part of
    filename.
    
    An example using this new infrastrucure:
       if (IWL_UCODE_API(priv->ucode_ver) >= 2) {
            Driver interacts with Firmware API version >= 2.
       } else {
            Driver interacts with Firmware API version 1.
       }
    Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    a0987a8d
iwl-agn.c 112.6 KB