Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Zahari Petkov <zahari@balena.io>"]
description = "Easy WiFi setup for Linux devices from your mobile phone or laptop"

[dependencies]
network-manager = { git = "https://github.com/balena-io-modules/network-manager.git" }
network-manager = { git = "https://github.com/hupster/network-manager.git" }
clap = "2.24"
iron = "0.6"
iron-cors = "0.8"
Expand Down
6 changes: 6 additions & 0 deletions src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ fn init_access_point_credentials(
identity: identity.to_string(),
passphrase: passphrase.to_string(),
}
} else if access_point.security.contains(Security::WPA3) {
AccessPointCredentials::Sae {
passphrase: passphrase.to_string(),
}
} else if access_point.security.contains(Security::WPA2)
|| access_point.security.contains(Security::WPA)
{
Expand Down Expand Up @@ -415,6 +419,8 @@ fn get_network_info(access_point: &AccessPoint) -> Network {
fn get_network_security(access_point: &AccessPoint) -> &str {
if access_point.security.contains(Security::ENTERPRISE) {
"enterprise"
} else if access_point.security.contains(Security::WPA3) {
"wpa3"
} else if access_point.security.contains(Security::WPA2)
|| access_point.security.contains(Security::WPA)
{
Expand Down