diff options
| author | Ulf Lilleengen <[email protected]> | 2025-12-03 08:23:26 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-03 08:23:26 +0000 |
| commit | db5529167d1efcf55f6c754809aa060b258c293a (patch) | |
| tree | 4ee7a2b04116df89ad4cfa10006f20603b166814 | |
| parent | 50653f5e46d3bc61f3c1025a3f0dc8cdb8f6a467 (diff) | |
| parent | a32a9b609a244ac375bddc5b478b6856f452be72 (diff) | |
Merge pull request #4976 from simonborje/support_ap_start_after_joining_secured_network
Always disable authentication before setting up AP
| -rw-r--r-- | cyw43/CHANGELOG.md | 2 | ||||
| -rw-r--r-- | cyw43/src/control.rs | 5 |
2 files changed, 5 insertions, 2 deletions
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 | |||
| 8 | <!-- next-header --> | 8 | <!-- next-header --> |
| 9 | ## Unreleased - ReleaseDate | 9 | ## Unreleased - ReleaseDate |
| 10 | 10 | ||
| 11 | - Reset WPA security before creating secure AP | ||
| 12 | |||
| 11 | ## 0.6.0 - 2025-11-27 | 13 | ## 0.6.0 - 2025-11-27 |
| 12 | 14 | ||
| 13 | - Updated documentation for Control::join() #4678 | 15 | - Updated documentation for Control::join() #4678 |
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> { | |||
| 436 | // Set wifi up again | 436 | // Set wifi up again |
| 437 | self.up().await; | 437 | self.up().await; |
| 438 | 438 | ||
| 439 | // Disable authentication | ||
| 440 | self.ioctl_set_u32(Ioctl::SetAuth, 0, AUTH_OPEN).await; | ||
| 441 | |||
| 439 | // Turn on AP mode | 442 | // Turn on AP mode |
| 440 | self.ioctl_set_u32(Ioctl::SetAp, 0, 1).await; | 443 | self.ioctl_set_u32(Ioctl::SetAp, 0, 1).await; |
| 441 | 444 | ||
| @@ -470,8 +473,6 @@ impl<'a> Control<'a> { | |||
| 470 | pfi.passphrase[..passphrase.as_bytes().len()].copy_from_slice(passphrase.as_bytes()); | 473 | pfi.passphrase[..passphrase.as_bytes().len()].copy_from_slice(passphrase.as_bytes()); |
| 471 | self.ioctl(IoctlType::Set, Ioctl::SetWsecPmk, 0, &mut pfi.to_bytes()) | 474 | self.ioctl(IoctlType::Set, Ioctl::SetWsecPmk, 0, &mut pfi.to_bytes()) |
| 472 | .await; | 475 | .await; |
| 473 | } else { | ||
| 474 | self.ioctl_set_u32(Ioctl::SetAuth, 0, 0).await; | ||
| 475 | } | 476 | } |
| 476 | 477 | ||
| 477 | // Change mutlicast rate from 1 Mbps to 11 Mbps | 478 | // Change mutlicast rate from 1 Mbps to 11 Mbps |
