cfg80211: add various struct element finding helpers
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Feb 2019 22:26:38 +0000 (23:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 12:51:50 +0000 (13:51 +0100)
commit49a68e0d88890060a2b9b6c6ad1ec53eb50abccf
tree5cc73012d8a6e31417bc69bb7be9fc980abc4518
parentc17e28d1bcd357219264aaab37d5daba8181f9d3
cfg80211: add various struct element finding helpers

We currently have a number of helpers to find elements that just
return a u8 *, change those to return a struct element and add
inlines to deal with the u8 * compatibility.

Note that the match behaviour is changed to start the natch at
the data, so conversion from _ie_match to _elem_match need to
be done carefully.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/scan.c
net/wireless/util.c