* [RESEND] [PATCH v3] wifi: mac80211: Accept authentication frames on P2P device
@ 2024-11-27 19:14 Miri Korenblit
2024-12-03 20:14 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Miri Korenblit @ 2024-11-27 19:14 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Andrei Otcheretianski, Miriam Rachel Korenblit
From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This is needed for PASN based P2P pairing.
type=feature
ticket=none
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
---
v2: fixed commit message title
v3: removed internal tags
net/mac80211/main.c | 9 +++++++--
net/mac80211/rx.c | 4 +++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index ee1211a213d7..f13c14fa82e8 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -5,7 +5,7 @@
* Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
* Copyright 2013-2014 Intel Mobile Communications GmbH
* Copyright (C) 2017 Intel Deutschland GmbH
- * Copyright (C) 2018-2023 Intel Corporation
+ * Copyright (C) 2018-2024 Intel Corporation
*/
#include <net/mac80211.h>
@@ -726,8 +726,13 @@ ieee80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
},
[NL80211_IFTYPE_P2P_DEVICE] = {
.tx = 0xffff,
+ /*
+ * To support P2P PASN pairing let user space register to rx
+ * also AUTH frames on P2P device interface.
+ */
.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
- BIT(IEEE80211_STYPE_PROBE_REQ >> 4),
+ BIT(IEEE80211_STYPE_PROBE_REQ >> 4) |
+ BIT(IEEE80211_STYPE_AUTH >> 4),
},
};
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 2bec18fc1b03..58c1b9a4e8b5 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -4562,7 +4562,9 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
return ieee80211_is_public_action(hdr, skb->len) ||
ieee80211_is_probe_req(hdr->frame_control) ||
ieee80211_is_probe_resp(hdr->frame_control) ||
- ieee80211_is_beacon(hdr->frame_control);
+ ieee80211_is_beacon(hdr->frame_control) ||
+ (ieee80211_is_auth(hdr->frame_control) &&
+ ether_addr_equal(sdata->vif.addr, hdr->addr1));
case NL80211_IFTYPE_NAN:
/* Currently no frames on NAN interface are allowed */
return false;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND] [PATCH v3] wifi: mac80211: Accept authentication frames on P2P device
2024-11-27 19:14 [RESEND] [PATCH v3] wifi: mac80211: Accept authentication frames on P2P device Miri Korenblit
@ 2024-12-03 20:14 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2024-12-03 20:14 UTC (permalink / raw)
To: Miri Korenblit; +Cc: johannes, linux-wireless, Andrei Otcheretianski
Miri Korenblit <miriam.rachel.korenblit@intel.com> writes:
> From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
>
> This is needed for PASN based P2P pairing.
>
> type=feature
> ticket=none
>
> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
> Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
> ---
> v2: fixed commit message title
> v3: removed internal tags
I still see internal tags (type & ticket).
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-03 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27 19:14 [RESEND] [PATCH v3] wifi: mac80211: Accept authentication frames on P2P device Miri Korenblit
2024-12-03 20:14 ` Kalle Valo
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).