]> 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)
commit8334e083a105bfe84673fca3d2b5dd1b3e2ae5ed
treecd0940bf0378b56494a7d41d56d10c8e2209021f
parente164496fd549048b6258ef96d245f5eb9d9ae3d8
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