• Johannes Berg's avatar
    wireless: add utility function to get P2P attribute · 0ee45355
    Johannes Berg authored
    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: default avatarJohannes Berg <johannes.berg@intel.com>
    0ee45355
util.c 31.4 KB