From 71fd5c2718889fa50e43c638589d21a621485d38 Mon Sep 17 00:00:00 2001 From: takotori Date: Mon, 11 Dec 2023 19:55:42 +0100 Subject: [PATCH] remove psk-flags --- src/network/connection.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/network/connection.rs b/src/network/connection.rs index 839c055..b22b75a 100644 --- a/src/network/connection.rs +++ b/src/network/connection.rs @@ -1256,7 +1256,6 @@ pub struct WifiSecuritySettings { pub pairwise: Vec, pub proto: Vec, pub psk: String, - pub psk_flags: SecretSettingsFlag, pub wep_key_flags: SecretSettingsFlag, pub wep_key_type: WEPKeyType, pub wep_key0: String, @@ -1326,8 +1325,6 @@ impl PropMapConvert for WifiSecuritySettings { } else { String::from("") }; - let _psk_flags_opt: Option<&u32> = prop_cast(&map, "psk-flags"); - let psk_flags = SecretSettingsFlag::from_i32(*leap_password_flags_opt.unwrap_or(&0) as i32); let _wep_key_flags_opt: Option<&u32> = prop_cast(&map, "wep-key-flags"); let wep_key_flags = SecretSettingsFlag::from_i32(*leap_password_flags_opt.unwrap_or(&0) as i32); @@ -1369,7 +1366,6 @@ impl PropMapConvert for WifiSecuritySettings { pairwise, proto, psk, - psk_flags, wep_key_flags, wep_key_type, wep_key0, @@ -1407,10 +1403,6 @@ impl PropMapConvert for WifiSecuritySettings { map.insert("pairwise".into(), Variant(Box::new(self.pairwise.clone()))); map.insert("proto".into(), Variant(Box::new(self.proto.clone()))); map.insert("psk".into(), Variant(Box::new(self.psk.clone()))); - map.insert( - "psk-flags".into(), - Variant(Box::new(self.psk_flags.to_i32())), - ); map.insert( "wep-key-type".into(), Variant(Box::new(self.wep_key_type.to_i32())),