From 7920af150bebdffb2f4ae61b7f095e6deaafab58 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 15 Aug 2024 14:51:05 +0200 Subject: [PATCH] wifi build fix for 6.6 --- ...11-restrict-nl80211_attr_txq_quantum-valu.patch | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/queue-6.6/wifi-cfg80211-restrict-nl80211_attr_txq_quantum-valu.patch b/queue-6.6/wifi-cfg80211-restrict-nl80211_attr_txq_quantum-valu.patch index 7d3d66c5542..d8a6cb14c51 100644 --- a/queue-6.6/wifi-cfg80211-restrict-nl80211_attr_txq_quantum-valu.patch +++ b/queue-6.6/wifi-cfg80211-restrict-nl80211_attr_txq_quantum-valu.patch @@ -90,26 +90,25 @@ Signed-off-by: Eric Dumazet Link: https://patch.msgid.link/20240615160800.250667-1-edumazet@google.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin +Signed-off-by: Greg Kroah-Hartman --- - net/wireless/nl80211.c | 6 +++++- + net/wireless/nl80211.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c -index be5c42d6ffbea..6ea77ed8dff76 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c -@@ -468,6 +468,10 @@ static struct netlink_range_validation nl80211_punct_bitmap_range = { +@@ -468,6 +468,10 @@ static struct netlink_range_validation n .max = 0xffff, }; -+static const struct netlink_range_validation q_range = { ++static struct netlink_range_validation q_range = { + .max = INT_MAX, +}; + static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = { [0] = { .strict_start_type = NL80211_ATTR_HE_OBSS_PD }, [NL80211_ATTR_WIPHY] = { .type = NLA_U32 }, -@@ -750,7 +754,7 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = { +@@ -750,7 +754,7 @@ static const struct nla_policy nl80211_p [NL80211_ATTR_TXQ_LIMIT] = { .type = NLA_U32 }, [NL80211_ATTR_TXQ_MEMORY_LIMIT] = { .type = NLA_U32 }, @@ -118,6 +117,3 @@ index be5c42d6ffbea..6ea77ed8dff76 100644 [NL80211_ATTR_HE_CAPABILITY] = NLA_POLICY_VALIDATE_FN(NLA_BINARY, validate_he_capa, NL80211_HE_MAX_CAPABILITY_LEN), --- -2.43.0 - -- 2.47.3