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 From a32a9b609a244ac375bddc5b478b6856f452be72 Mon Sep 17 00:00:00 2001 From: Simon Börjesson Date: Tue, 2 Dec 2025 23:00:22 +0100 Subject: Add changelog entry --- cyw43/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cyw43/CHANGELOG.md b/cyw43/CHANGELOG.md index 9fe341357..4f0dc896b 100644 --- a/cyw43/CHANGELOG.md +++ b/cyw43/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased - ReleaseDate +- Reset WPA security before creating secure AP + ## 0.6.0 - 2025-11-27 - Updated documentation for Control::join() #4678 -- cgit