Skip to content

A WiFi security auditing software

iface: probe 5 GHz support lazily when the band is toggled (#183)

Martin Olivierf1a7171863d1
diff --git a/crates/gui/src/frontend/connections/interface.rs b/crates/gui/src/frontend/connections/interface.rs
index 69380bb..f146039 100644
--- a/crates/gui/src/frontend/connections/interface.rs
+++ b/crates/gui/src/frontend/connections/interface.rs
@@ -108,17 +108,8 @@ fn connect_interface_select(app_data: Rc<AppData>) {
app_data.app_gui.scan_but.emit_clicked();
- match backend::is_5ghz_supported(&iface).unwrap_or(false) {
- true => {
- app_data.app_gui.ghz_2_4_but.set_sensitive(true);
- app_data.app_gui.ghz_5_but.set_sensitive(true);
- app_data.app_gui.ghz_5_but.set_active(true);
- }
- false => app_data
- .app_gui
- .ghz_5_but
- .set_tooltip_text(Some("Your network card doesn't support 5 GHz")),
- }
+ app_data.app_gui.ghz_2_4_but.set_sensitive(true);
+ app_data.app_gui.ghz_5_but.set_sensitive(true);
app_data.interface_gui.window.hide();
}