aboutsummaryrefslogtreecommitdiff
path: root/cyw43/src
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 /cyw43/src
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.
Diffstat (limited to 'cyw43/src')
-rw-r--r--cyw43/src/control.rs2
1 files changed, 2 insertions, 0 deletions
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