Return-path: Received: from mail-oi0-f65.google.com ([209.85.218.65]:34528 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754850AbcHCONG (ORCPT ); Wed, 3 Aug 2016 10:13:06 -0400 Received: by mail-oi0-f65.google.com with SMTP id a135so2329686oii.1 for ; Wed, 03 Aug 2016 07:12:51 -0700 (PDT) From: Denis Kenzior To: linux-wireless@vger.kernel.org Cc: Denis Kenzior Subject: [PATCH v3 0/3] Improve wireless netdev detection Date: Wed, 3 Aug 2016 16:58:32 -0500 Message-Id: <1470261515-2830-1-git-send-email-denkenz@gmail.com> (sfid-20160803_161400_172995_F10633C5) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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