]> 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)
commita878bac24bbc03ac44089e49a717855dd1505b35
treee119a06808d631006ca066c5f4c9b8225e3924e2
parentfb1849e40a9c83b621e178be04d6acd907271b84
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