Re: nm 1.8.2 problem bring up wifi interface


On Mon, Nov 27, 2017 at 5:47 PM, Beniamino Galvani <bgalvani redhat com> wrote:
On Sun, Nov 26, 2017 at 09:28:11PM +0100, Belisko Marek wrote:

I'm trying to use for my project networkmanager. I've build image
using yocto with nm v1.8.2. On my HW I'm using SDIO wifi chip
(esp8089) which I can operate with wpa_supplicant and simple config
file. When try to use it with networkmanager nmclo device show wlan0
as unavailable. When checked logs it seems that wpa_supplicant cannot
bring interface up because somebody else is trying to do the same.
I've added process name to kernel driver code (can be seen in kernel
messages like: esp_op_add_interface interface 2 requested by -
NetworkManager - 231). When looking through log it seems that nm is
trying to add wireless interface but also wpa_supplicant which then
driver refuse as max interfaces is 2 (also not sure what it means).
Anything else I can check or how to workaround this probem? (when
using raspbian wifi with nm works fine).


it seems the driver gets confused by the MAC address change:

  kernel: [    9.476452] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
  kernel: [    9.482897] esp_op_add_interface interface 0 requested by - NetworkManager - 231
  kernel: [    9.490304] esp_op_add_interface STA
  kernel: [    9.495224] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
  NetworkManager[231]: <info> [1511649658.0166] device (wlan0): set-hw-addr: set MAC address to 
26:2F:1A:C7:05:F4 (scanning)
  kernel: [    9.504764] esp_op_add_interface interface 2 requested by - NetworkManager - 231

Perhaps you can try disabling the randomization of MAC address during
scans; add the following to /etc/NetworkManager/NetworkManager.conf
and restart the service.
yes this does the trick. Now it works fine. Thanks a lot.





as simple and primitive as possible
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]