]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90b2010e49378de5e1a65ebbf8987b5e4adfdb1f
treecd0940bf0378b56494a7d41d56d10c8e2209021f
parent7d08513bd561f79322af8672e46aa5b8839ffad5
wireless: add utility function to get P2P attribute

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>
include/net/cfg80211.h
net/wireless/util.c