Re: [PATCH 0/5] Improve wireless netdev detection

2016-07-08 Thread Denis Kenzior
Hi Johannes, >> Are you okay with the general approach? I see no issues with sending these events out. I'd like them to actually be reliable (if present) though, not double as you'd implied - but I didn't really understand in which cases you were expecting issues, was it only P2P-Device? Tha

Re: [PATCH 0/5] Improve wireless netdev detection

2016-07-08 Thread Johannes Berg
On Fri, 2016-07-08 at 10:22 -0500, Denis Kenzior wrote: >  > Apologies, I've only been looking at the kernel side for several > days, so my understanding is still incomplete. > > I was looking at mac80211/iface.c: ieee80211_if_add() which seems to  > handle NL80211_IFTYPE_P2P_DEVICE specially by n

Re: [PATCH 0/5] Improve wireless netdev detection

2016-07-08 Thread Denis Kenzior
Hi Johannes, On 07/08/2016 05:32 AM, Johannes Berg wrote: On Thu, 2016-07-07 at 02:08 -0500, Denis Kenzior wrote: The current mechanism to detect hot-plug / unplug of wireless devices is somewhat arcane. One has to listen to NEW_WIPHY/DEL_WIPHY events over nl80211 as well as RTM_NEWLINK / RTM_

Re: [PATCH 0/5] Improve wireless netdev detection

2016-07-08 Thread Johannes Berg
On Thu, 2016-07-07 at 02:08 -0500, Denis Kenzior wrote: > The current mechanism to detect hot-plug / unplug of wireless devices > is > somewhat arcane.  One has to listen to NEW_WIPHY/DEL_WIPHY events > over > nl80211 as well as RTM_NEWLINK / RTM_DELLINK events over rtnl, then > somehow find a corr

[PATCH 0/5] Improve wireless netdev detection

2016-07-06 Thread Denis Kenzior
The current mechanism to detect hot-plug / unplug of wireless devices is somewhat arcane. One has to listen to NEW_WIPHY/DEL_WIPHY events over nl80211 as well as RTM_NEWLINK / RTM_DELLINK events over rtnl, then somehow find a correlation between these events. This involves userspace sending GET_I