ieee80211: fix HE SPR size calculation
authorJohannes Berg <johannes.berg@intel.com>
Wed, 25 Mar 2020 08:09:19 +0000 (09:09 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 10:39:41 +0000 (11:39 +0100)
commit7730f4de2eb4bf89e555954aa533b577b74ee121
tree497c79b01f2655b6378b3a676cc6402c0c095078
parent0cc132985b58e9bf8af1509c74232fe0fc7d2b00
ieee80211: fix HE SPR size calculation

The he_sr_control field is just a u8, so le32_to_cpu()
shouldn't be applied to it; this was evidently copied
from ieee80211_he_oper_size(). Fix it, and also adjust
the type of the local variable.

Fixes: ef11a931bd1c ("mac80211: HE: add Spatial Reuse element parsing support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200325090918.dfe483b49e06.Ia53622f23b2610a2ae6ea39a199866196fe946c1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h