diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-09-09 01:09:15 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-09-09 02:13:25 +0200 |
| commit | b9a1aaea5b89bd5689796bdfa4227353ee8a452b (patch) | |
| tree | 22a2f15923726f1d51ab96a71a95c2b8d8223fb0 /tests | |
| parent | 6b21f6d3d1f48bfa722d648918e06b627350bbff (diff) | |
cyw43: add support for WPA3 and more extensive security options.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rp/src/bin/cyw43-perf.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/rp/src/bin/cyw43-perf.rs b/tests/rp/src/bin/cyw43-perf.rs index 38fbde7c1..11c8aa58c 100644 --- a/tests/rp/src/bin/cyw43-perf.rs +++ b/tests/rp/src/bin/cyw43-perf.rs | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | teleprobe_meta::target!(b"rpi-pico"); | 3 | teleprobe_meta::target!(b"rpi-pico"); |
| 4 | 4 | ||
| 5 | use cyw43::JoinOptions; | ||
| 5 | use cyw43_pio::PioSpi; | 6 | use cyw43_pio::PioSpi; |
| 6 | use defmt::{panic, *}; | 7 | use defmt::{panic, *}; |
| 7 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| @@ -81,7 +82,10 @@ async fn main(spawner: Spawner) { | |||
| 81 | unwrap!(spawner.spawn(net_task(stack))); | 82 | unwrap!(spawner.spawn(net_task(stack))); |
| 82 | 83 | ||
| 83 | loop { | 84 | loop { |
| 84 | match control.join_wpa2(WIFI_NETWORK, WIFI_PASSWORD).await { | 85 | match control |
| 86 | .join(WIFI_NETWORK, JoinOptions::new(WIFI_PASSWORD.as_bytes())) | ||
| 87 | .await | ||
| 88 | { | ||
| 85 | Ok(_) => break, | 89 | Ok(_) => break, |
| 86 | Err(err) => { | 90 | Err(err) => { |
| 87 | panic!("join failed with status={}", err.status); | 91 | panic!("join failed with status={}", err.status); |
