Skip to content

Commit

Permalink
Don't wrap wireless channel in option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcronenberg committed Sep 16, 2024
1 parent fc6b262 commit f828541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/migrate-wicked/src/wireless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl TryFrom<&Network> for model::ConnectionConfig {
config.password = Some(wpa_psk.passphrase.clone())
}
if let Some(channel) = network.channel {
config.channel = Some(channel);
config.channel = channel;
if channel <= 14 {
config.band = Some("bg".try_into().unwrap());
} else {
Expand Down

0 comments on commit f828541

Please sign in to comment.