iwlwifi: mvm: Update BEACON_TEMPLATE_CMD firmware API
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Sun, 27 Oct 2019 12:01:43 +0000 (14:01 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 4 Jan 2020 10:41:55 +0000 (12:41 +0200)
The new API version adds support for FILS discovery frames.
It adds a new flag and a field for short SSID configuration.
The new API is backward compatible, so we can just switch to it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h

index f89a9e16a8c00afdd6ff288e6c35c22d65f8d354..f1d1fe96fecc4a2fdb734929839d0c7fbb5e869f 100644 (file)
@@ -813,6 +813,7 @@ enum iwl_mac_beacon_flags {
        IWL_MAC_BEACON_ANT_A    = BIT(9),
        IWL_MAC_BEACON_ANT_B    = BIT(10),
        IWL_MAC_BEACON_ANT_C    = BIT(11),
+       IWL_MAC_BEACON_FILS     = BIT(12),
 };
 
 /**
@@ -820,6 +821,7 @@ enum iwl_mac_beacon_flags {
  * @byte_cnt: byte count of the beacon frame.
  * @flags: least significant byte for rate code. The most significant byte
  *     is &enum iwl_mac_beacon_flags.
+ * @short_ssid: Short SSID
  * @reserved: reserved
  * @template_id: currently equal to the mac context id of the coresponding mac.
  * @tim_idx: the offset of the tim IE in the beacon
@@ -831,14 +833,15 @@ enum iwl_mac_beacon_flags {
 struct iwl_mac_beacon_cmd {
        __le16 byte_cnt;
        __le16 flags;
-       __le64 reserved;
+       __le32 short_ssid;
+       __le32 reserved;
        __le32 template_id;
        __le32 tim_idx;
        __le32 tim_size;
        __le32 ecsa_offset;
        __le32 csa_offset;
        struct ieee80211_hdr frame[0];
-} __packed; /* BEACON_TEMPLATE_CMD_API_S_VER_9 */
+} __packed; /* BEACON_TEMPLATE_CMD_API_S_VER_10 */
 
 struct iwl_beacon_notif {
        struct iwl_mvm_tx_resp beacon_notify_hdr;