aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Samson <[email protected]>2025-09-27 00:36:20 +0200
committerNathan Samson <[email protected]>2025-09-27 00:59:47 +0200
commitfff0a1522dd9e32a15004130d0c097f903e422b0 (patch)
tree7d2b8e653d634af20ddd58598f3bb6287de7a836
parent34911c581c1066a9650ac2103d125d5bbb9a229c (diff)
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.
-rw-r--r--cyw43/CHANGELOG.md1
-rw-r--r--cyw43/src/control.rs2
2 files changed, 3 insertions, 0 deletions
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
11- Updated documentation for Control::join() #4678 11- Updated documentation for Control::join() #4678
12- Bump bt-hci to 0.6.0. 12- Bump bt-hci to 0.6.0.
13- Add error handling to HCI transport implementation. 13- Add error handling to HCI transport implementation.
14- Reset WPA security on AP creation #4709
14 15
15## 0.5.0 - 2025-08-28 16## 0.5.0 - 2025-08-28
16 17
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> {
470 pfi.passphrase[..passphrase.as_bytes().len()].copy_from_slice(passphrase.as_bytes()); 470 pfi.passphrase[..passphrase.as_bytes().len()].copy_from_slice(passphrase.as_bytes());
471 self.ioctl(IoctlType::Set, Ioctl::SetWsecPmk, 0, &mut pfi.to_bytes()) 471 self.ioctl(IoctlType::Set, Ioctl::SetWsecPmk, 0, &mut pfi.to_bytes())
472 .await; 472 .await;
473 } else {
474 self.ioctl_set_u32(Ioctl::SetAuth, 0, 0).await;
473 } 475 }
474 476
475 // Change mutlicast rate from 1 Mbps to 11 Mbps 477 // Change mutlicast rate from 1 Mbps to 11 Mbps