]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nl80211: allow splitting wiphy information in dumps
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Feb 2013 15:19:38 +0000 (16:19 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:42 +0000 (16:35 +0100)
commit3713b4e364effef4b170c97d54528b1cdb16aa6b
tree1fb304fe4b02d44f0958e0931108bd1537ea1643
parent191922cd4bfda551205c3a2dfe5b33287e8326ab
nl80211: allow splitting wiphy information in dumps

The per-wiphy information is getting large, to the point
where with more than the typical number of channels it's
too large and overflows, and userspace can't get any of
the information at all.

To address this (in a way that doesn't require making all
messages bigger) allow userspace to specify that it can
deal with wiphy information split across multiple parts
of the dump, and if it can split up the data. This also
splits up each channel separately so an arbitrary number
of channels can be supported.

Additionally, since GET_WIPHY has the same problem, add
support for filtering the wiphy dump and get information
for a single wiphy only, this allows userspace apps to
use dump in this case to retrieve all data from a single
device.

As userspace needs to know if all this this is supported,
add a global nl80211 feature set and include a bit for
this behaviour in it.

Cc: Dennis H Jensen <dennis.h.jensen@siemens.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c