Improve wireless netdev detection
Status from this message: Applied. I squashed 1/2 since it's kinda pointless to have a patch
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 2 repliesApplied
- v2 RFC3 patches 7 repliesSuperseded
- v15 patches 4 repliesSuperseded
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nl80211: Add nl80211_notify_ifacenet/ net/ | +31 | 0 replies | |
| 2/3 | core: Always notify of new wireless netdevsnet/ net/ | +11 | 0 replies | |
| 3/3 | core: Always notify when wireless netdev is removednet/ net/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/3] Improve wireless netdev detection
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(-)
Signature · 1 line
2.7.3