summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/fw/api/alive.h
diff options
context:
space:
mode:
authorMordechai Goodstein <mordechay.goodstein@intel.com>2017-06-13 17:17:27 +0300
committerLuca Coelho <luciano.coelho@intel.com>2017-08-01 12:41:45 +0300
commitf2e66c8df0d0f10c70ed7f5e14a939714e9ee6a9 (patch)
tree2cf4d52ef0523ff3b1c5427ec620bb9a1a1777d3 /drivers/net/wireless/intel/iwlwifi/fw/api/alive.h
parentf6aa45f67aaa03bd294040508218bc72c5958ad6 (diff)
downloadlinux-f2e66c8df0d0f10c70ed7f5e14a939714e9ee6a9.tar.bz2
iwlwifi: implement fseq version mismatch warning
During init, the FW checks whether the FSEQ value matches what it expects. If it doesn't match, we print a warning to let integrators clearly know that something is wrong. This can happen if another core (i.e. not WiFi) has updated the FSEQ version. This notification is only sent by the FW in production, for development firmwares, an assertion is triggered instead. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Mordechai Goodstein <mordechay.goodstein@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api/alive.h')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/fw/api/alive.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/alive.h b/drivers/net/wireless/intel/iwlwifi/fw/api/alive.h
index 6af6a9b32b69..3684a3e180e5 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/alive.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/alive.h
@@ -187,4 +187,20 @@ struct iwl_card_state_notif {
__le32 flags;
} __packed; /* CARD_STATE_NTFY_API_S_VER_1 */
+/**
+ * struct iwl_fseq_ver_mismatch_nty - Notification about version
+ *
+ * This notification does not have a direct impact on the init flow.
+ * It means that another core (not WiFi) has initiated the FSEQ flow
+ * and updated the FSEQ version. The driver only prints an error when
+ * this occurs.
+ *
+ * @aux_read_fseq_ver: auxiliary read FSEQ version
+ * @wifi_fseq_ver: FSEQ version (embedded in WiFi)
+ */
+struct iwl_fseq_ver_mismatch_ntf {
+ __le32 aux_read_fseq_ver;
+ __le32 wifi_fseq_ver;
+} __packed; /* FSEQ_VER_MISMATCH_NTFY_API_S_VER_1 */
+
#endif /* __iwl_fw_api_alive_h__ */