From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BBE913C8E8; Mon, 18 Aug 2025 13:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755525326; cv=none; b=Ew2Qj4A+tewsSMHbSj4HwyCHqvlDMvAGnZ6gFiUpnnpPo3VKkYKZiH904tH0+DETVuwLm9zYgOTTqADWsdcldgqUQGw9h/J/Fz33Uf3ViL/moKdg3StQYpBc/Ob3uXnhxqR5bZ4En8cAir4/fKmAbfE6h8JBr2jgsqaheRv/6qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755525326; c=relaxed/simple; bh=Z8XtEVgPgnQHIpZIdU1a+v6RpGwH8BzFT/AFO663Ucg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nwzp5WV5Pnv6jQyowCMpV7AGOmI8kwkcvl9byezofHRBojFbNw/qIJ4pkWDg/SKFEW7teD5qiSekoJVqTSYY+B+QlAwxxdHFQyfUmpn/9wB7jiFSuS4WK87uAtVlCWM5tHAYpS8p1tCAEd9gVIwEJzM7TbnEFE0vw1ysT+UMmm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y8rztPhF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y8rztPhF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B126C4CEEB; Mon, 18 Aug 2025 13:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755525326; bh=Z8XtEVgPgnQHIpZIdU1a+v6RpGwH8BzFT/AFO663Ucg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y8rztPhFwPctddhF5GTUCLu+LQs7lzbjincJE61pAAC1KjNhhLFkJrcVIRs6ITPSc rx8wADWukyav+x6cR6eb+VBLMv9k+MGsqsgdxTklgSMpcFuFnRh2MZcuQ+ED5ydJrR WlKmfWt9MbHxc/jNDhfL4o86yjy0No2LBR8uysDQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chin-Yen Lee , Ping-Ke Shih , Sasha Levin Subject: [PATCH 6.16 228/570] wifi: rtw89: wow: Add Basic Rate IE to probe request in scheduled scan mode Date: Mon, 18 Aug 2025 14:43:35 +0200 Message-ID: <20250818124514.607680243@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124505.781598737@linuxfoundation.org> References: <20250818124505.781598737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chin-Yen Lee [ Upstream commit 37c23874d13eb369d8b384a1ce5992ff6c23d56f ] In scheduled scan mode, the current probe request only includes the SSID IE, but omits the Basic Rate IE. Some APs do not respond to such incomplete probe requests, causing net-detect failures. To improve interoperability and ensure APs respond correctly, add the Basic Rate IE to the probe request in driver. Signed-off-by: Chin-Yen Lee Signed-off-by: Ping-Ke Shih Link: https://patch.msgid.link/20250716122926.6709-1-pkshih@realtek.com Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtw89/wow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/wow.c b/drivers/net/wireless/realtek/rtw89/wow.c index 34a0ab49bd7a..b6df7900fdc8 100644 --- a/drivers/net/wireless/realtek/rtw89/wow.c +++ b/drivers/net/wireless/realtek/rtw89/wow.c @@ -1412,6 +1412,8 @@ static void rtw89_fw_release_pno_pkt_list(struct rtw89_dev *rtwdev, static int rtw89_pno_scan_update_probe_req(struct rtw89_dev *rtwdev, struct rtw89_vif_link *rtwvif_link) { + static const u8 basic_rate_ie[] = {WLAN_EID_SUPP_RATES, 0x08, + 0x0c, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6c}; struct rtw89_wow_param *rtw_wow = &rtwdev->wow; struct cfg80211_sched_scan_request *nd_config = rtw_wow->nd_config; u8 num = nd_config->n_match_sets, i; @@ -1423,10 +1425,11 @@ static int rtw89_pno_scan_update_probe_req(struct rtw89_dev *rtwdev, skb = ieee80211_probereq_get(rtwdev->hw, rtwvif_link->mac_addr, nd_config->match_sets[i].ssid.ssid, nd_config->match_sets[i].ssid.ssid_len, - nd_config->ie_len); + nd_config->ie_len + sizeof(basic_rate_ie)); if (!skb) return -ENOMEM; + skb_put_data(skb, basic_rate_ie, sizeof(basic_rate_ie)); skb_put_data(skb, nd_config->ie, nd_config->ie_len); info = kzalloc(sizeof(*info), GFP_KERNEL); -- 2.39.5