* [PATCH] patches: Add missing definition for NL80211_FILS_DISCOVERY_ATTR_TMPL
@ 2022-03-22 18:21 Aloka Dixit
2022-04-11 22:00 ` Hauke Mehrtens
0 siblings, 1 reply; 2+ messages in thread
From: Aloka Dixit @ 2022-03-22 18:21 UTC (permalink / raw)
To: hauke; +Cc: backports, Aloka Dixit
Add definition for the attribute NL80211_FILS_DISCOVERY_ATTR_TMPL
which is missing for kernels older than 5.10.0.
Fixes: 51258137c228 ("patches: Avoid using NLA_POLICY_RANGE(...)")
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
---
patches/0099-netlink-range/mac80211.patch | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/patches/0099-netlink-range/mac80211.patch b/patches/0099-netlink-range/mac80211.patch
index e1037a58e1f1..168265ce50a9 100644
--- a/patches/0099-netlink-range/mac80211.patch
+++ b/patches/0099-netlink-range/mac80211.patch
@@ -1,6 +1,8 @@
+diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
+index 578bff9c378b..18145767193a 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
-@@ -412,10 +412,12 @@ static const struct nla_policy
+@@ -412,10 +412,15 @@ static const struct nla_policy
nl80211_fils_discovery_policy[NL80211_FILS_DISCOVERY_ATTR_MAX + 1] = {
[NL80211_FILS_DISCOVERY_ATTR_INT_MIN] = NLA_POLICY_MAX(NLA_U32, 10000),
[NL80211_FILS_DISCOVERY_ATTR_INT_MAX] = NLA_POLICY_MAX(NLA_U32, 10000),
@@ -9,11 +11,14 @@
NLA_POLICY_RANGE(NLA_BINARY,
NL80211_FILS_DISCOVERY_TMPL_MIN_LEN,
IEEE80211_MAX_DATA_LEN),
++#else
++ [NL80211_FILS_DISCOVERY_ATTR_TMPL] = { .type = NLA_BINARY,
++ .len = IEEE80211_MAX_DATA_LEN },
+#endif
};
static const struct nla_policy
-@@ -655,16 +657,26 @@ static const struct nla_policy nl80211_p
+@@ -665,16 +670,26 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
* The value of the Length field of the Supported Operating
* Classes element is between 2 and 253.
*/
@@ -40,7 +45,7 @@
[NL80211_ATTR_MAC_HINT] = NLA_POLICY_EXACT_LEN_WARN(ETH_ALEN),
[NL80211_ATTR_WIPHY_FREQ_HINT] = { .type = NLA_U32 },
[NL80211_ATTR_TDLS_PEER_CAPABILITY] = { .type = NLA_U32 },
-@@ -719,10 +731,15 @@ static const struct nla_policy nl80211_p
+@@ -729,10 +744,15 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
[NL80211_ATTR_TXQ_LIMIT] = { .type = NLA_U32 },
[NL80211_ATTR_TXQ_MEMORY_LIMIT] = { .type = NLA_U32 },
[NL80211_ATTR_TXQ_QUANTUM] = { .type = NLA_U32 },
--
2.31.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] patches: Add missing definition for NL80211_FILS_DISCOVERY_ATTR_TMPL
2022-03-22 18:21 [PATCH] patches: Add missing definition for NL80211_FILS_DISCOVERY_ATTR_TMPL Aloka Dixit
@ 2022-04-11 22:00 ` Hauke Mehrtens
0 siblings, 0 replies; 2+ messages in thread
From: Hauke Mehrtens @ 2022-04-11 22:00 UTC (permalink / raw)
To: Aloka Dixit; +Cc: backports
On 3/22/22 19:21, Aloka Dixit wrote:
> Add definition for the attribute NL80211_FILS_DISCOVERY_ATTR_TMPL
> which is missing for kernels older than 5.10.0.
>
> Fixes: 51258137c228 ("patches: Avoid using NLA_POLICY_RANGE(...)")
> Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Thank you for your patch, I applied it to master.
Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-11 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 18:21 [PATCH] patches: Add missing definition for NL80211_FILS_DISCOVERY_ATTR_TMPL Aloka Dixit
2022-04-11 22:00 ` Hauke Mehrtens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).