mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] wifi: cfg80211: Allow multiple userpsace applications to receive the same registered management frame.
@ 2023-06-20  8:57 quentin.feraboli
  2023-06-20  9:00 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: quentin.feraboli @ 2023-06-20  8:57 UTC (permalink / raw)
  To: johannes, davem, edumazet, kuba, pabeni, linux-wireless, netdev,
	linux-kernel, quentin.feraboli

Currently, only one application can listen to a management frame type.

Signed-off-by: quentin.feraboli <quentin.feraboli@softathome.com>
---
 net/wireless/mlme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index ac059cefbeb3..0f2e83fa63cb 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -572,7 +572,7 @@ int cfg80211_mlme_register_mgmt(struct wireless_dev *wdev, u32 snd_portid,
        list_for_each_entry(reg, &wdev->mgmt_registrations, list) {
                int mlen = min(match_len, reg->match_len);

-               if (frame_type != le16_to_cpu(reg->frame_type))
+               if (frame_type != le16_to_cpu(reg->frame_type) || snd_portid != nreg->nlportid)
                        continue;

                if (memcmp(reg->match, match_data, mlen) == 0) {
--
2.17.1

-- This message and any attachments herein are confidential, intended solely for the addressees and are SoftAtHome’s ownership. Any unauthorized use or dissemination is prohibited. If you are not the intended addressee of this message, please cancel it immediately and inform the sender.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-20  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-20  8:57 [PATCH 1/1] wifi: cfg80211: Allow multiple userpsace applications to receive the same registered management frame quentin.feraboli
2023-06-20  9:00 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®