summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg2018-08-31 10:31:07 +0200
committerJohannes Berg2018-09-05 10:03:13 +0200
commit331aead5203f5979212e798682ff9157c939ceba (patch)
treeb9222eca0737d63b68b48b07a7765d190fbb500f /net/mac80211
parentmac80211: remove pointless 'params' NULL checks (diff)
downloadkernel-qcow2-linux-331aead5203f5979212e798682ff9157c939ceba.tar.gz
kernel-qcow2-linux-331aead5203f5979212e798682ff9157c939ceba.tar.xz
kernel-qcow2-linux-331aead5203f5979212e798682ff9157c939ceba.zip
mac80211: use le16_encode_bits() instead of open-coding
Instead of open-coding the equivalent of le16_encode_bits(), just use that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 355357cc7dbd..bf6b7ad7f7cd 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -549,7 +549,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
if (status->encoding == RX_ENC_HE &&
status->flag & RX_FLAG_RADIOTAP_HE) {
-#define HE_PREP(f, val) cpu_to_le16(FIELD_PREP(IEEE80211_RADIOTAP_HE_##f, val))
+#define HE_PREP(f, val) le16_encode_bits(val, IEEE80211_RADIOTAP_HE_##f)
if (status->enc_flags & RX_ENC_FLAG_STBC_MASK) {
he.data6 |= HE_PREP(DATA6_NSTS,