[PATCH] Remove probe request registration before changing interface
姜海涛(Hector Jiang)
jianghaitao at zeku.com
Sun Aug 21 04:40:52 PDT 2022
Changing interface type with the probe request registered will result
in a failure to register it again on the new interface. So we need to
unregister it before changing interface type.
Signed-off-by: Hector Jiang <jianghaitao at zeku.com>
---
src/drivers/driver_nl80211.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 0127a6be2..58e14df5b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -6804,6 +6804,9 @@ void nl80211_restore_ap_mode(struct i802_bss *bss)
int wpa_driver_nl80211_set_mode(struct i802_bss *bss,
enum nl80211_iftype nlmode)
{
+ if (bss->nl_preq)
+ wpa_driver_nl80211_probe_req_report(bss, 0);
+
return wpa_driver_nl80211_set_mode_impl(bss, nlmode, NULL);
}
--
2.25.1
ZEKU
信息安全声明:本邮件包含信息归发件人所在组织ZEKU所有。 禁止任何人在未经授权的情况下以任何形式(包括但不限于全部或部分披露、复制或传播)使用包含的信息。若您错收了本邮件,请立即电话或邮件通知发件人,并删除本邮件及附件。
Information Security Notice: The information contained in this mail is solely property of the sender's organization ZEKU. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-probe-request-registration-before-changing-in.patch
Type: application/octet-stream
Size: 1039 bytes
Desc: 0001-Remove-probe-request-registration-before-changing-in.patch
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20220821/ff7d6d9b/attachment-0001.obj>
More information about the Hostap
mailing list