]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
iwlwifi: wowlan: adapt to wowlan status API version 10
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Fri, 11 Sep 2020 17:44:36 +0000 (20:44 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Oct 2020 18:53:02 +0000 (21:53 +0300)
In version 10 we actually go back to the struct size before 9
so only for version 9 we need the size fixup

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200911204056.33b55b3ca440.Ib0202c7011d8d0e09f55fcceceb9d3d5051631c6@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c

index 2a94545d737fa005eaee8006a32318645a82c8be..bcdd2b376ce5b5b5195c93952ea09fb70ea6904f 100644 (file)
@@ -1592,7 +1592,8 @@ struct iwl_wowlan_status *iwl_mvm_send_wowlan_get_status(struct iwl_mvm *mvm)
 
        status_size = sizeof(*status);
 
-       if (notif_ver == IWL_FW_CMD_VER_UNKNOWN || notif_ver < 9)
+       /* only ver 9 has a different size */
+       if (notif_ver == IWL_FW_CMD_VER_UNKNOWN || notif_ver != 9)
                status_size = sizeof(*v7);
 
        if (len < status_size) {