mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
wifi: iwlwifi: align the name of iwl_alive_ntf_v6 to the convention
This struct rperesent versions 6 and 7. The convention is to name an API struct with the last version it represent, so rename to iwl_alive_ntf_v7. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250915113137.81240e1d4df3.I2c1264a49b9f0fc160f960cf3c5dc4cedf6ceb6d@changeid
This commit is contained in:
@@ -88,7 +88,7 @@ struct iwl_imr_alive_info {
|
||||
__le32 enabled;
|
||||
} __packed; /* IMR_ALIVE_INFO_API_S_VER_1 */
|
||||
|
||||
struct iwl_alive_ntf_v6 {
|
||||
struct iwl_alive_ntf_v7 {
|
||||
__le16 status;
|
||||
__le16 flags;
|
||||
struct iwl_lmac_alive lmac_data[2];
|
||||
|
||||
@@ -60,7 +60,7 @@ enum iwl_legacy_cmds {
|
||||
* @UCODE_ALIVE_NTFY:
|
||||
* Alive data from the firmware, as described in
|
||||
* &struct iwl_alive_ntf_v3 or &struct iwl_alive_ntf_v4 or
|
||||
* &struct iwl_alive_ntf_v5 or &struct iwl_alive_ntf_v6.
|
||||
* &struct iwl_alive_ntf_v5 or &struct iwl_alive_ntf_v7.
|
||||
*/
|
||||
UCODE_ALIVE_NTFY = 0x1,
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait,
|
||||
switch (version) {
|
||||
case 6:
|
||||
case 7:
|
||||
expected_sz = sizeof(struct iwl_alive_ntf_v6);
|
||||
expected_sz = sizeof(struct iwl_alive_ntf_v7);
|
||||
break;
|
||||
case 8:
|
||||
expected_sz = sizeof(struct iwl_alive_ntf);
|
||||
|
||||
@@ -115,7 +115,7 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait,
|
||||
|
||||
|
||||
if (version >= 6) {
|
||||
struct iwl_alive_ntf_v6 *palive;
|
||||
struct iwl_alive_ntf_v7 *palive;
|
||||
|
||||
if (pkt_len < sizeof(*palive))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user