wireless: add utility function to get P2P attribute
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Oct 2012 18:48:40 +0000 (19:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Nov 2012 12:24:52 +0000 (13:24 +0100)
Parsing the P2P attributes can be tricky as their
contents can be split across multiple (vendor) IEs.
Thus, it's not possible to parse them like IEs (by
returning a pointer to the data.) Instead, provide
a function that copies the attribute data into a
caller-provided buffer and returns the size needed
(useful in case the buffer was too small.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found