Skip to content

Commit 6d74c94

Browse files
committed
main/generate_hostapd: Set AC_MODE in template when 5GHz is used
1 parent 34a3f9c commit 6d74c94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,13 @@ fn generate_hostapd_conf(config: AppConfig) -> std::io::Result<()> {
345345
&template,
346346
&[
347347
("HW_MODE", &config.hw_mode),
348+
("AC_MODE", {
349+
if config.hw_mode == "a" {
350+
"1"
351+
} else {
352+
"0"
353+
}
354+
}),
348355
("COUNTRY_CODE", &config.country_code),
349356
("CHANNEL", &config.channel.to_string()),
350357
("SSID", &config.ssid),

0 commit comments

Comments
 (0)