wifi-rs
                                
                                
                                
                                    wifi-rs copied to clipboard
                            
                            
                            
                        Long network interface name causing failure to connect
The network interface name was wlx9cefd5f8f9c0 but when renamed in Ubuntu to wlan0 the connection no longer failed.
Below is a code snippet:
        let config = Some(Config {
            interface: Some(self.net_iface.as_str()),
        });
        ctx.wifi_ctx = WiFi::new(config);
        match ctx.wifi_ctx.connect(ssid.as_str(), psk.as_str()) {