From 1965d5e6dbcb39775cacc06750702c27bdd4fda8 Mon Sep 17 00:00:00 2001 From: Simon Börjesson Date: Mon, 3 Nov 2025 21:42:19 +0100 Subject: Disable authentication before setting up Ap --- cyw43/src/control.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 49e3faee4..219198d1f 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -436,6 +436,9 @@ impl<'a> Control<'a> { // Set wifi up again self.up().await; + // Disable authentication + self.ioctl_set_u32(Ioctl::SetAuth, 0, AUTH_OPEN).await; + // Turn on AP mode self.ioctl_set_u32(Ioctl::SetAp, 0, 1).await; @@ -470,8 +473,6 @@ impl<'a> Control<'a> { pfi.passphrase[..passphrase.as_bytes().len()].copy_from_slice(passphrase.as_bytes()); self.ioctl(IoctlType::Set, Ioctl::SetWsecPmk, 0, &mut pfi.to_bytes()) .await; - } else { - self.ioctl_set_u32(Ioctl::SetAuth, 0, 0).await; } // Change mutlicast rate from 1 Mbps to 11 Mbps -- cgit