mac80211: fix spatial reuse size calculation mac80211-staging
authorJohn Crispin <john@phrozen.org>
Tue, 25 Feb 2020 07:18:37 +0000 (08:18 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 25 Feb 2020 07:19:16 +0000 (08:19 +0100)
commit636677a8e26dbd47944a21a2e29b7d60f31ce5b3
tree615baa7289d399ff94f046f33d8e952394cffd55
parent22c2d2cad7ac4ef6feb91311ed120a56f692d75e
mac80211: fix spatial reuse size calculation

The he_sr_control field is u8 so there is no need to do any endianess
conversion. Drop the conversion code and use he_sr_control directly.

Fixes: ef11a931bd1c ("mac80211: HE: add Spatial Reuse element parsing support")
Signed-off-by: John Crispin <john@phrozen.org>
include/linux/ieee80211.h