linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Improve wireless netdev detection
@ 2016-08-03 21:58 Denis Kenzior
  2016-08-03 21:58 ` [PATCH v3 1/3] nl80211: Add nl80211_notify_iface Denis Kenzior
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Denis Kenzior @ 2016-08-03 21:58 UTC (permalink / raw)
  To: linux-wireless; +Cc: 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_INTERFACE or GET_WIPHY commands to the kernel, which incurs
additional roundtrips.

This patch series proposes that NEW_INTERFACE and DEL_INTERFACE events are
always emitted, regardless of whether a netdev was added/removed by the
driver or explicitly via NEW_INTERFACE/DEL_INTERFACE commands.

v2: Squished patches 2+3, 4+5.  DEL_INTERFACE event notification is now
sent inside cfg80211_unregister_wdev instead of nl80211_del_interface.

v3: No changes, non-RFC version.

Denis Kenzior (3):
  nl80211: Add nl80211_notify_iface
  core: Always notify of new wireless netdevs
  core: Always notify when wireless netdev is removed

 net/wireless/core.c    |  6 +++++
 net/wireless/nl80211.c | 69 +++++++++++++++++++++++++++-----------------------
 net/wireless/nl80211.h |  3 +++
 3 files changed, 47 insertions(+), 31 deletions(-)

-- 
2.7.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-11 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03 21:58 [PATCH v3 0/3] Improve wireless netdev detection Denis Kenzior
2016-08-03 21:58 ` [PATCH v3 1/3] nl80211: Add nl80211_notify_iface Denis Kenzior
2016-08-03 21:58 ` [PATCH v3 2/3] core: Always notify of new wireless netdevs Denis Kenzior
2016-08-03 21:58 ` [PATCH v3 3/3] core: Always notify when wireless netdev is removed Denis Kenzior
2016-08-11 12:44 ` [PATCH v3 0/3] Improve wireless netdev detection Johannes Berg
2016-08-11 16:31   ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).