aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/fw/api/location.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-10-25 09:15:21 +0200
committerLuca Coelho <luciano.coelho@intel.com>2019-01-29 16:10:32 +0200
commit5213e8a8a28d2c4c143fec94e57c866a958ed52d (patch)
tree9ea3de9c103a65388c74ce5750ae74dfdcedd50b /drivers/net/wireless/intel/iwlwifi/fw/api/location.h
parentiwlwifi: mvm: add location APIs (diff)
downloadlinux-5213e8a8a28d2c4c143fec94e57c866a958ed52d.tar.xz
linux-5213e8a8a28d2c4c143fec94e57c866a958ed52d.zip
iwlwifi: mvm: implement CSI reporting
Implement CSI (channel estimation matrix) reporting in the mvm driver, if the firmware has the capability. Currently only a debugfs API is provided as the API is still under discussion. For now, RX aggregation must be disabled to use this feature on data frames as we haven't found a good way to attach the data to A-MPDUs, given complexities with multi-queue. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api/location.h')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/fw/api/location.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/location.h b/drivers/net/wireless/intel/iwlwifi/fw/api/location.h
index 0df0851b9513..6da91ec0df55 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/location.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/location.h
@@ -94,6 +94,15 @@ enum iwl_location_subcmd_ids {
*/
TOF_RESPONDER_DYN_CONFIG_CMD = 0x5,
/**
+ * @CSI_HEADER_NOTIFICATION: CSI header
+ */
+ CSI_HEADER_NOTIFICATION = 0xFA,
+ /**
+ * @CSI_CHUNKS_NOTIFICATION: CSI chunk,
+ * uses &struct iwl_csi_chunk_notification
+ */
+ CSI_CHUNKS_NOTIFICATION = 0xFB,
+ /**
* @TOF_LC_NOTIF: used for LCI/civic location, contains just
* the action frame
*/
@@ -688,4 +697,15 @@ struct iwl_ftm_responder_stats {
__le16 reserved;
} __packed; /* TOF_RESPONDER_STATISTICS_NTFY_S_VER_2 */
+#define IWL_CSI_CHUNK_CTL_NUM_MASK 0x3
+#define IWL_CSI_CHUNK_CTL_IDX_MASK 0xc
+
+struct iwl_csi_chunk_notification {
+ __le32 token;
+ __le16 seq;
+ __le16 ctl;
+ __le32 size;
+ u8 data[];
+} __packed; /* CSI_CHUNKS_HDR_NTFY_API_S_VER_1 */
+
#endif /* __iwl_fw_api_location_h__ */