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@xxxxxxxx> --- 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.
Attachment:
0001-Remove-probe-request-registration-before-changing-in.patch
Description: 0001-Remove-probe-request-registration-before-changing-in.patch
_______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap