wifi-rs icon indicating copy to clipboard operation
wifi-rs copied to clipboard

Long network interface name causing failure to connect

Open rorynugent opened this issue 2 years ago • 0 comments

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()) {

rorynugent avatar May 25 '23 18:05 rorynugent