nl80211: add generation number to all dumps
In order for userspace to be able to figure out whether it obtained a consistent snapshot of data or not when using netlink dumps, we need to have a generation number in each dump message that indicates whether the list has changed or not -- its value is arbitrary. This patch adds such a number to all dumps, this needs some mac80211 involvement to keep track of a generation number to start with when adding/removing mesh paths or stations. The wiphy and netdev lists can be fully handled within cfg80211, of course, but generation numbers need to be stored there as well. Signed-off-by:Johannes Berg <johannes@sipsolutions.net> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- include/linux/nl80211.h 12 additions, 5 deletionsinclude/linux/nl80211.h
- include/net/cfg80211.h 12 additions, 0 deletionsinclude/net/cfg80211.h
- net/mac80211/cfg.c 4 additions, 0 deletionsnet/mac80211/cfg.c
- net/mac80211/ieee80211_i.h 1 addition, 0 deletionsnet/mac80211/ieee80211_i.h
- net/mac80211/mesh.h 2 additions, 0 deletionsnet/mac80211/mesh.h
- net/mac80211/mesh_pathtbl.c 5 additions, 0 deletionsnet/mac80211/mesh_pathtbl.c
- net/mac80211/sta_info.c 2 additions, 0 deletionsnet/mac80211/sta_info.c
- net/wireless/core.c 5 additions, 0 deletionsnet/wireless/core.c
- net/wireless/core.h 2 additions, 0 deletionsnet/wireless/core.h
- net/wireless/nl80211.c 21 additions, 10 deletionsnet/wireless/nl80211.c
- net/wireless/scan.c 1 addition, 0 deletionsnet/wireless/scan.c
Loading
Please register or sign in to comment