--- zzzz-none-000/linux-5.4.213/drivers/net/wireless/ath/wil6210/main.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/net/wireless/ath/wil6210/main.c 2024-08-14 09:02:07.000000000 +0000 @@ -1,6 +1,6 @@ /* * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. - * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -307,6 +307,7 @@ /* statistics */ memset(&sta->stats, 0, sizeof(sta->stats)); sta->stats.tx_latency_min_us = U32_MAX; + wil_sta_info_amsdu_init(sta); } static void _wil6210_disconnect_complete(struct wil6210_vif *vif, @@ -363,6 +364,7 @@ cfg80211_disconnected(ndev, reason_code, NULL, 0, vif->locally_generated_disc, + NL80211_MLO_INVALID_LINK_ID, GFP_KERNEL); vif->locally_generated_disc = false; } else if (test_bit(wil_vif_fwconnecting, vif->status)) { @@ -693,6 +695,13 @@ } } +void wil_sta_info_amsdu_init(struct wil_sta_info *sta) +{ + sta->amsdu_drop_sn = -1; + sta->amsdu_drop_tid = -1; + sta->amsdu_drop = 0; +} + int wil_priv_init(struct wil6210_priv *wil) { uint i;