mac80211: refactor extended element parsing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jan 2020 11:12:40 +0000 (13:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Feb 2020 11:38:21 +0000 (12:38 +0100)
commite4d005b80deeb053526ca089510bf2e20473ef62
tree2fc56dc5a21feef5d4cfeb90478b4db51ae4a5b1
parent75e296e9b22aef6fa467523ace87ef623dac1fad
mac80211: refactor extended element parsing

This code was really ugly, refactor it a bit to make it more
readable.

While at it, use sizeof() and fix the UORA element length
check bug.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131111300.891737-4-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c