Re: wpa_supplicant 2.10 - Scan failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,

On 1/30/22 13:49, David Bauer wrote:

>
> The kernel exposes the maximum supported bytes to userspace with
> which can be retrieved in wiphy_info_handler.
>
> See the attached patch. Does scanning work with thid patch applied to
> v2.10?
>
> [0] https://bugs.archlinux.org/task/65588
>
> Best
> David

Thanks ! This almost works. The patch doesn't fix the problem as-is, but
I suspect it's just a typo in the direction of the comparison in the
check in nl80211_scan_common. If I flip the direction as attached, it
then works with the orginial patch + the modification applied to 2.10.

Best,
Étienne
From 2f170a7b0b1c4ba41831b26ca80ca62289641f34 Mon Sep 17 00:00:00 2001
From: Etienne Morice <neon.emorice@xxxxxxxx>
Date: Sun, 30 Jan 2022 14:43:50 +0100
Subject: [PATCH] nl80211: add extra-ies only if allowed by driver

Signed-off-by: Etienne Morice <neon.emorice@xxxxxxxx>
---
 src/drivers/driver_nl80211_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211_scan.c b/src/drivers/driver_nl80211_scan.c
index 62d63cd5b..5fc527f22 100644
--- a/src/drivers/driver_nl80211_scan.c
+++ b/src/drivers/driver_nl80211_scan.c
@@ -207,7 +207,7 @@ nl80211_scan_common(struct i802_bss *bss, u8 cmd,
 		wpa_printf(MSG_DEBUG, "nl80211: Passive scan requested");
 	}
 
-	if (params->extra_ies && drv->capa.max_scan_ie_len <= params->extra_ies_len) {
+	if (params->extra_ies && params->extra_ies_len <= drv->capa.max_scan_ie_len) {
 		wpa_hexdump(MSG_MSGDUMP, "nl80211: Scan extra IEs",
 			    params->extra_ies, params->extra_ies_len);
 		if (nla_put(msg, NL80211_ATTR_IE, params->extra_ies_len,
-- 
2.35.0

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux