iwlwifi: mvm: add marker cmd response struct.
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Tue, 19 Sep 2017 15:52:13 +0000 (15:52 +0000)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 11:57:23 +0000 (14:57 +0300)
This helps for documentation and clarifies the code by defining the
exact response struct for the marker command.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/commands.h
drivers/net/wireless/intel/iwlwifi/fw/api/debug.h

index 074868394427f642f6a9a85a3ec2b5d8ad0183ac..7ebbf097488b066db27093c777b9ce9ff33b6d56 100644 (file)
@@ -504,6 +504,7 @@ enum iwl_legacy_cmds {
 
        /**
         * @MARKER_CMD: trace marker command, uses &struct iwl_mvm_marker
+        * with &struct iwl_mvm_marker_rsp
         */
        MARKER_CMD = 0xcb,
 
index 9f88b61536bc75ffff22a788050a73bc66b770de..0a81fb1b6ed41b55bfc2cab5411f4f874537c298 100644 (file)
@@ -278,6 +278,15 @@ struct iwl_mvm_marker {
        __le32 metadata[0];
 } __packed; /* MARKER_API_S_VER_1 */
 
+/**
+ * struct iwl_mvm_marker_rsp - Response to marker cmd
+ *
+ * @gp2: The gp2 clock value in the FW
+ */
+struct iwl_mvm_marker_rsp {
+       __le32 gp2;
+} __packed;
+
 /* Operation types for the debug mem access */
 enum {
        DEBUG_MEM_OP_READ = 0,