From 7432c4069bc5c8d91799a1a4f9c220ec8ffab475 Mon Sep 17 00:00:00 2001 From: Cirrus Date: Sun, 28 Apr 2024 15:34:54 -0700 Subject: [PATCH] passphrase_info does not have to be passed &mut --- cyw43/src/control.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 0b7123eb9..50ef34367 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -232,7 +232,7 @@ impl<'a> Control<'a> { pub async fn join_wpa2_passphrase_info( &mut self, ssid: &str, - passphrase_info: &mut PassphraseInfo, + passphrase_info: &PassphraseInfo, ) -> Result<(), Error> { self.set_iovar_u32("ampdu_ba_wsize", 8).await; @@ -272,7 +272,7 @@ impl<'a> Control<'a> { passphrase: [0; 64], }; pfi.passphrase[..passphrase.len()].copy_from_slice(passphrase.as_bytes()); - self.join_wpa2_passphrase_info(ssid, &mut pfi).await + self.join_wpa2_passphrase_info(ssid, &pfi).await } /// Join a protected network with the provided ssid and precomputed PSK. @@ -283,7 +283,7 @@ impl<'a> Control<'a> { passphrase: [0; 64], }; pfi.passphrase[..psk.len()].copy_from_slice(psk); - self.join_wpa2_passphrase_info(ssid, &mut pfi).await + self.join_wpa2_passphrase_info(ssid, &pfi).await } async fn wait_for_join(&mut self, i: SsidInfo) -> Result<(), Error> {