mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 03:13:17 +00:00
29 lines
805 B
Diff
29 lines
805 B
Diff
From fe00d31bd57181e9f9b0f6b10483e9193282be05 Mon Sep 17 00:00:00 2001
|
|
From: Bo Jiao <Bo.Jiao@mediatek.com>
|
|
Date: Fri, 1 Apr 2022 09:15:21 +0800
|
|
Subject: [PATCH 03/19] mac80211: mtk: it's invalid case when frag_threshold is
|
|
greater than 2346
|
|
|
|
Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
|
|
---
|
|
net/wireless/nl80211.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
|
|
index bc07fe8..4631bb1 100644
|
|
--- a/net/wireless/nl80211.c
|
|
+++ b/net/wireless/nl80211.c
|
|
@@ -3495,6 +3495,9 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
|
|
goto out;
|
|
}
|
|
|
|
+ if (frag_threshold >= 2346)
|
|
+ frag_threshold = (u32) -1;
|
|
+
|
|
if (frag_threshold != (u32) -1) {
|
|
/*
|
|
* Fragments (apart from the last one) are required to
|
|
--
|
|
2.18.0
|
|
|