On 26 May 2018 at 09:12, Thomas Korimort <[email protected]> wrote: > Package: wpasupplicant > Version: 2:2.4-1+deb9u1 > Severity: important > > Dear Maintainer, > > i am running a Debian 9 stretch up-to-date amd64 linux. I had an old wifi > adapter which broke sometimes the connection for whatever reason. I used to > configure my WLAN settings via /etc/network/interfaces. That seemed to work > fine. Even when using Gnome it seemed to work, although network-manager seemed > to be dead and not recognizing my Wifi stick. Then i bought a new wifi stick, > which i am running with an externally downloaded driver for rtl8812AU (my > chipset is rtl8811AU). I commented out the lines of my old wifi sticks ID and > placed the new wifi sticks id. That seemed to work and also Gnome network- > manager recognizes the new hardware now. But the connection is unreliable. It > sometimes breaks after sleep mode and it takes longer time to start up and > reconnect again. When i looked into journalctl log i found that wpasupplicant > is still using the id for my old WLAN stick although i have changed the > configuration in /etc/network/interfaces: > > ------------------------------- > # This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > > source /etc/network/interfaces.d/* > > # The loopback network interface > auto lo > iface lo inet loopback > > # The primary network interface > allow-hotplug wlxe09xxxx > iface wlxe09xxxx inet static > > #allow-hotplug wlx0013xxxx > #iface wlx0013xxxx inet static > address 192.168.1.3 > gateway 192.168.1.1 > # dns-* options are implemented by the resolvconf package, if > installed > dns-nameservers 192.168.1.2 192.168.1.7 4.4.4.4 8.8.8.8 > wpa-ssid xxxxxxx > wpa-psk xxxxxxx > ------------------------ > > It still reports in journalctl log the wlx0013xxxx interface which is > commented > out, instead of the wlxe09xxxx interface, which is the new one. Could that be > one of the reasons for the non-satisfactory operation of my network > connection?
If you’re using Network Manager, you need to remove all Wi-Fi configuration from your /etc/network/interfaces, since NM will by default ignore all interfaces listed there. However, the same cannot be said about wpa_supplicant, since you’re explicitly enabling it here. I would not mix those two things: it’s either NM+wpa_supplicant manage the interfaces, and there are no wireless interfaces configured in /e/n/interfaces, or you don’t use NM and configure Wi-Fi strictly using /e/n/i. -- Cheers, Andrej

