All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tanuj Sharma <ertanuj96@gmail.com>
To: stable@vger.kernel.org
Cc: gregkh@linuxfoundation.org, pkshih@realtek.com,
	phhuang@realtek.com, kvalo@kernel.org
Subject: [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
Date: Mon, 30 Nov 2026 19:09:20 +0530	[thread overview]
Message-ID: <20261130133920.36336-1-ertanuj96@gmail.com> (raw)
In-Reply-To: <2026112429-chimp-relax-ebfa@gregkh>

From: Po-Hao Huang <phhuang@realtek.com>

[ Upstream commit 0788bad5d012b164e5eabf5da206dea4fa67db1c ]

Remove the cancellation of active scan with specific SSID when receiving
beacons/probe responses of that SSID. Per IEEE Std 802.11ax 26.17.2.3.3,
only active scan of direct BSSID should be cancelled. Previously the
cancellation causes hidden AP under same ESS couldn't be found.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260909070004.35353-5-pkshih@realtek.com
Signed-off-by: Tanuj Sharma <ertanuj96@gmail.com>
---
 drivers/net/wireless/realtek/rtw89/core.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index 397ebbf..4ec6289 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -2571,7 +2571,6 @@ static void rtw89_core_cancel_6ghz_probe_tx(struct rtw89_dev *rtwdev,
 	struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data;
 	struct list_head *pkt_list = rtwdev->scan_info.pkt_list;
 	struct rtw89_pktofld_info *info;
-	const u8 *ies = mgmt->u.beacon.variable, *ssid_ie;
 	bool queue_work = false;
 
 	if (rx_status->band != NL80211_BAND_6GHZ)
@@ -2582,21 +2581,10 @@ static void rtw89_core_cancel_6ghz_probe_tx(struct rtw89_dev *rtwdev,
 		return;
 	}
 
-	ssid_ie = cfg80211_find_ie(WLAN_EID_SSID, ies, skb->len);
-
 	list_for_each_entry(info, &pkt_list[NL80211_BAND_6GHZ], list) {
 		if (ether_addr_equal(info->bssid, mgmt->bssid)) {
 			info->cancel = true;
 			queue_work = true;
-			continue;
-		}
-
-		if (!ssid_ie || ssid_ie[1] != info->ssid_len || info->ssid_len == 0)
-			continue;
-
-		if (memcmp(&ssid_ie[2], info->ssid, info->ssid_len) == 0) {
-			info->cancel = true;
-			queue_work = true;
 		}
 	}
 
-- 
2.43.0


       reply	other threads:[~2026-11-30 13:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2026112429-chimp-relax-ebfa@gregkh>
2026-11-30 13:39 ` Tanuj Sharma [this message]
2026-11-30 15:42   ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Greg KH
2026-11-30 19:50     ` Tanuj Sharma
2026-12-01  5:52       ` Greg KH
2026-12-01  8:23         ` [PATCH] wifi: rtw89: fix OOB read in cfg80211_find_ie for 6 GHz scan Tanuj Sharma

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=20261130133920.36336-1-ertanuj96@gmail.com \
    --to=ertanuj96@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kvalo@kernel.org \
    --cc=phhuang@realtek.com \
    --cc=pkshih@realtek.com \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.