mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "quentin.feraboli" <quentin.feraboli@softathome.com>
To: johannes@sipsolutions.net, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, quentin.feraboli@softathome.com
Subject: [PATCH 1/1] wifi: cfg80211: Allow multiple userpsace applications to receive the same registered management frame.
Date: Tue, 20 Jun 2023 10:57:51 +0200	[thread overview]
Message-ID: <20230620085751.31329-1-quentin.feraboli@softathome.com> (raw)

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.

             reply	other threads:[~2023-06-20  8:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20  8:57 quentin.feraboli [this message]
2023-06-20  9:00 ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230620085751.31329-1-quentin.feraboli@softathome.com \
    --to=quentin.feraboli@softathome.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®