Message ID | 20200325090918.dfe483b49e06.Ia53622f23b2610a2ae6ea39a199866196fe946c1@changeid |
---|---|
State | New |
Headers | show |
Series | ieee80211: fix HE SPR size calculation | expand |
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 7d3f2ced92d1..30ef0f06dd5b 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2109,7 +2109,7 @@ ieee80211_he_spr_size(const u8 *he_spr_ie) return 0; /* Calc required length */ - he_spr_params = le32_to_cpu(he_spr->he_sr_control); + he_spr_params = he_spr->he_sr_control; if (he_spr_params & IEEE80211_HE_SPR_NON_SRG_OFFSET_PRESENT) spr_len++; if (he_spr_params & IEEE80211_HE_SPR_SRG_INFORMATION_PRESENT)