mac80211: fix saving a few HE values
authorNaftali Goldstein <naftali.goldstein@intel.com>
Wed, 5 Sep 2018 05:06:07 +0000 (08:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:45:56 +0000 (18:45 +0100)
commit8d705195a9a3cf3bd6a7a530b63e0e523f87189f
treed1edd4dcfc6d00c316e1f45e4006298210e678cb
parent4d146d72687e99dfa5f45b185f2be8c716053e55
mac80211: fix saving a few HE values

[ Upstream commit 77cbbc35a49b75969d98edce9400beb21720aa39 ]

After masking the he_oper_params, to get the requested values as
integers one must rshift and not lshift.  Fix that by using the
le32_get_bits() macro.

Fixes: 41cbb0f5a295 ("mac80211: add support for HE")
Signed-off-by: Naftali Goldstein <naftali.goldstein@intel.com>
[converted to use le32_get_bits()]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c