fix: fix for Debian 6.1.0-26

This commit is contained in:
Shen Mintao
2024-12-18 16:35:02 +08:00
parent 06f3c3685c
commit 1f55f8626d
+3 -1
View File
@@ -464,7 +464,9 @@ static bool rwnx_rx_data_skb(struct rwnx_hw *rwnx_hw, struct rwnx_vif *rwnx_vif,
if (amsdu) {
int count;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
// Debian 6.1.0-26 backported the new function call, but not Ubuntu 6.2.
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || \
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 109) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0))
ieee80211_amsdu_to_8023s(skb, &list, rwnx_vif->ndev->dev_addr,
RWNX_VIF_TYPE(rwnx_vif), 0, NULL, NULL, false);
#else