]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mvm: remove support for iwl_wowlan_status_v12
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 9 Jul 2025 20:05:34 +0000 (23:05 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 10 Jul 2025 16:48:38 +0000 (19:48 +0300)
FWs with this version are no longer supported on any device.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709230308.1b9177bfbe1d.I53c1527cc5097f05df352b6f2f99282b00a5d7ac@changeid
drivers/net/wireless/intel/iwlwifi/fw/api/commands.h
drivers/net/wireless/intel/iwlwifi/fw/api/d3.h
drivers/net/wireless/intel/iwlwifi/mvm/d3.c

index 1c86a858aaab689814cf2700fcc46c857c1e0beb..3f8f9e3fcba8d7525152c72ea2356da51cc6a234 100644 (file)
@@ -574,8 +574,7 @@ enum iwl_legacy_cmds {
 
        /**
         * @WOWLAN_GET_STATUSES: response in &struct iwl_wowlan_status_v6,
-        *      &struct iwl_wowlan_status_v7, &struct iwl_wowlan_status_v9 or
-        *      &struct iwl_wowlan_status_v12
+        *      &struct iwl_wowlan_status_v7, &struct iwl_wowlan_status_v9
         */
        WOWLAN_GET_STATUSES = 0xe5,
 
index 3fd1a1b64b07f889b7a2adbe389e096c0d2a3719..a73b1f63da1c3839b9a058a3bce3cc90981a0e6c 100644 (file)
@@ -757,44 +757,6 @@ struct iwl_wowlan_status_v9 {
        u8 wake_packet[]; /* can be truncated from _length to _bufsize */
 } __packed; /* WOWLAN_STATUSES_RSP_API_S_VER_9 */
 
-/**
- * struct iwl_wowlan_status_v12 - WoWLAN status
- * @gtk: GTK data
- * @igtk: IGTK data
- * @replay_ctr: GTK rekey replay counter
- * @pattern_number: number of the matched pattern
- * @non_qos_seq_ctr: non-QoS sequence counter to use next.
- *                   Reserved if the struct has version >= 10.
- * @qos_seq_ctr: QoS sequence counters to use next
- * @wakeup_reasons: wakeup reasons, see &enum iwl_wowlan_wakeup_reason
- * @num_of_gtk_rekeys: number of GTK rekeys
- * @transmitted_ndps: number of transmitted neighbor discovery packets
- * @received_beacons: number of received beacons
- * @wake_packet_length: wakeup packet length
- * @wake_packet_bufsize: wakeup packet buffer size
- * @tid_tear_down: bit mask of tids whose BA sessions were closed
- *                in suspend state
- * @reserved: unused
- * @wake_packet: wakeup packet
- */
-struct iwl_wowlan_status_v12 {
-       struct iwl_wowlan_gtk_status_v3 gtk[WOWLAN_GTK_KEYS_NUM];
-       struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM];
-       __le64 replay_ctr;
-       __le16 pattern_number;
-       __le16 non_qos_seq_ctr;
-       __le16 qos_seq_ctr[8];
-       __le32 wakeup_reasons;
-       __le32 num_of_gtk_rekeys;
-       __le32 transmitted_ndps;
-       __le32 received_beacons;
-       __le32 wake_packet_length;
-       __le32 wake_packet_bufsize;
-       u8 tid_tear_down;
-       u8 reserved[3];
-       u8 wake_packet[]; /* can be truncated from _length to _bufsize */
-} __packed; /* WOWLAN_STATUSES_RSP_API_S_VER_12 */
-
 /**
  * struct iwl_wowlan_info_notif_v1 - WoWLAN information notification
  * @gtk: GTK data
index bc5f70f04d2ca1d791cd94f14142d0580ad1b6d5..36890e9c7a2fe771fa1c7285d2e97aa5cbd688d3 100644 (file)
@@ -2467,7 +2467,6 @@ iwl_mvm_parse_wowlan_status_common_ ## _ver(struct iwl_mvm *mvm,  \
 iwl_mvm_parse_wowlan_status_common(v6)
 iwl_mvm_parse_wowlan_status_common(v7)
 iwl_mvm_parse_wowlan_status_common(v9)
-iwl_mvm_parse_wowlan_status_common(v12)
 
 static struct iwl_wowlan_status_data *
 iwl_mvm_send_wowlan_get_status(struct iwl_mvm *mvm, u8 sta_id)
@@ -2559,18 +2558,6 @@ iwl_mvm_send_wowlan_get_status(struct iwl_mvm *mvm, u8 sta_id)
                iwl_mvm_convert_igtk(status, &v9->igtk[0]);
 
                status->tid_tear_down = v9->tid_tear_down;
-       } else if (notif_ver == 12) {
-               struct iwl_wowlan_status_v12 *v12 = (void *)cmd.resp_pkt->data;
-
-               status = iwl_mvm_parse_wowlan_status_common_v12(mvm, v12, len);
-               if (!status)
-                       goto out_free_resp;
-
-               iwl_mvm_convert_key_counters_v5(status, &v12->gtk[0].sc);
-               iwl_mvm_convert_gtk_v3(status, v12->gtk);
-               iwl_mvm_convert_igtk(status, &v12->igtk[0]);
-
-               status->tid_tear_down = v12->tid_tear_down;
        } else {
                IWL_ERR(mvm,
                        "Firmware advertises unknown WoWLAN status response %d!\n",