Message ID | iwlwifi.20200911204056.33b55b3ca440.Ib0202c7011d8d0e09f55fcceceb9d3d5051631c6@changeid (mailing list archive) |
---|---|
State | Accepted |
Commit | d14f499dd2edc5511f7f38ec8e1a48467f3077df |
Delegated to: | Luca Coelho |
Headers | show |
Series | iwlwifi: updates intended for v5.10 2020-09-11 | expand |
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c index 2a94545d737f..bcdd2b376ce5 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c @@ -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) {