Skip to content

Commit

Permalink
ignore auth-alg if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
takotori committed Dec 11, 2023
1 parent 4ad9df4 commit 0bbd3b3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/network/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1414,10 +1414,12 @@ impl PropMapConvert for WifiSecuritySettings {

fn to_propmap(&self) -> PropMap {
let mut map = PropMap::new();
map.insert(
"auth-alg".into(),
Variant(Box::new(self.authentication_algorithm.clone())),
);
if !self.authentication_algorithm.is_empty() {
map.insert(
"auth-alg".into(),
Variant(Box::new(self.authentication_algorithm.clone())),
);
}
map.insert("group".into(), Variant(Box::new(self.group.clone())));
map.insert(
"key-mgmt".into(),
Expand Down

0 comments on commit 0bbd3b3

Please sign in to comment.