From fff0a1522dd9e32a15004130d0c097f903e422b0 Mon Sep 17 00:00:00 2001 From: Nathan Samson Date: Sat, 27 Sep 2025 00:36:20 +0200 Subject: Fixes #4709. Creating an open AP after joining a WPA network doesn't work This fixes the issue by always resetting the security value when creating a new open AP. --- cyw43/CHANGELOG.md | 1 + cyw43/src/control.rs | 2 ++ 2 files changed, 3 insertions(+) (limited to 'cyw43') diff --git a/cyw43/CHANGELOG.md b/cyw43/CHANGELOG.md index 5c77b7093..1045fd30b 100644 --- a/cyw43/CHANGELOG.md +++ b/cyw43/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated documentation for Control::join() #4678 - Bump bt-hci to 0.6.0. - Add error handling to HCI transport implementation. +- Reset WPA security on AP creation #4709 ## 0.5.0 - 2025-08-28 diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index e4dc0804f..fd0d4d532 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -470,6 +470,8 @@ 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