Re: Regression: netlink fail (triggered by iw) removes extra wlan (phy) interface
From: RafaÅ MiÅecki
Date: Wed Mar 16 2016 - 08:01:04 EST
On 25 February 2016 at 14:22, RafaÅ MiÅecki <zajec5@xxxxxxxxx> wrote:
> After updating kernel in OpenWrt from 4.1.6 to 4.1.10 I noticed that
> if "iw" command fails (which happens very rarely) my wlan0-1 interface
> disappears. To trigger this problem easily I'm using this trivial
> while [ 1 ]
> iw phy phy0 interface add mon0 type monitor
> ifconfig mon0 up
> iw dev mon0 del
> Whenever it goes wrong I see:
> Failed to connect to generic netlink.
> kern.info kernel: [ 1933.114338] br-lan: port 3(wlan0-1) entered disabled state
> kern.info kernel: [ 1933.335568] device wlan0-1 left promiscuous mode
> kern.info kernel: [ 1933.340385] br-lan: port 3(wlan0-1) entered disabled state
> daemon.notice netifd: Network device 'wlan0-1' link is down
> command failed: Too many open files in system (-23)
> This regression is caused by commit:
> 4e27762 netlink: Fix autobind race condition that leads to zero port ID
> that is a backport of upstream:
> This still happens with kernel 4.4.
> My hardware is Linksys WRT160NL (Atheros AR9130 SoC) and I'm using two
> __ap interfaces on phy0 (wlan0 and wlan0-1).
> Could you take a look at this?
> Is there some additional info I could provide to help fixing this?