]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: use netlink consistent dump feature for BSS dumps
authorJohannes Berg <johannes.berg@intel.com>
Tue, 21 Jun 2011 07:45:33 +0000 (09:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Jun 2011 20:09:47 +0000 (16:09 -0400)
commit1ec5fa4c998f22cf99ec58a08e5e069de3195c70
treee119a06808d631006ca066c5f4c9b8225e3924e2
parent084f2ece0c5ed90eda9549aad5faa7fb50bc70c5
nl80211: use netlink consistent dump feature for BSS dumps

Use the new consistent dump feature from (generic) netlink
to advertise when dumps are incomplete.

Readers may note that this does not initialize the
rdev->bss_generation counter to a non-zero value. This is
still OK since the value is modified only under spinlock
when the list is modified. Since the dump code holds the
spinlock, the value will either be > 0 already, or the
list will still be empty in which case a consistent dump
will actually be made (and be empty).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c