]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: api: remove version number from latest stored_beacon_notif
authorYedidya Benshimol <yedidya.ben.shimol@intel.com>
Sat, 28 Dec 2024 20:34:16 +0000 (22:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:40 +0000 (15:26 +0100)
By convention the newest version of a command/notification structure is
named with out the _ver_# suffix. Apply to stored_beacon_notif.

Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241228223206.e2140aa3c65b.Ie851bdda6df02dcc352bf765a3ec6bdac45c65a2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/offload.h
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 6a7bbfd6b2b7dc05e8089663e012e8ecb53eed13..9b09b835560b73913b73d3b7aa697a51cb9592ef 100644 (file)
@@ -31,7 +31,7 @@ enum iwl_prot_offload_subcmd_ids {
 
        /**
         * @STORED_BEACON_NTF: &struct iwl_stored_beacon_notif_v2 or
-        *      &struct iwl_stored_beacon_notif_v3
+        *      &struct iwl_stored_beacon_notif
         */
        STORED_BEACON_NTF = 0xFF,
 };
@@ -71,18 +71,18 @@ struct iwl_stored_beacon_notif_v2 {
 } __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_2 */
 
 /**
- * struct iwl_stored_beacon_notif_v3 - Stored beacon notification
+ * struct iwl_stored_beacon_notif - Stored beacon notification
  *
  * @common: fields common for all versions
  * @sta_id: station for which the beacon was received
  * @reserved: reserved for alignment
  * @data: beacon data, length in @byte_count
  */
-struct iwl_stored_beacon_notif_v3 {
+struct iwl_stored_beacon_notif {
        struct iwl_stored_beacon_notif_common common;
        u8 sta_id;
        u8 reserved[3];
        u8 data[MAX_STORED_BEACON_SIZE];
-} __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_3 */
+} __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_3, _VER_4 */
 
 #endif /* __iwl_fw_api_offload_h__ */
index bbf0f2753f9fc1181802189cb7ae22ec73cf8462..daa3bfaccaba4c3f7cf5994fbc7d2f0f4d84fd3f 100644 (file)
@@ -1751,7 +1751,7 @@ void iwl_mvm_rx_stored_beacon_notif(struct iwl_mvm *mvm,
 
                data = sb_v2->data;
        } else {
-               struct iwl_stored_beacon_notif_v3 *sb_v3 = (void *)pkt->data;
+               struct iwl_stored_beacon_notif *sb_v3 = (void *)pkt->data;
 
                if (pkt_len < struct_size(sb_v3, data, size))
                        return;