mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt76: mt7915: fix endianness warnings in mu radiotap
Fix sparse: sparse: restricted __le32 degrades to integer
Fixes: e63fadb87f ("mt76: mt7915: report HE MU radiotap")
Signed-off-by: Ryder Lee <[email protected]>
This commit is contained in:
+5
-8
@@ -293,19 +293,16 @@ mt7915_mac_decode_he_mu_radiotap(struct sk_buff *skb,
|
||||
MU_PREP(FLAGS2_SIG_B_SYMS_USERS,
|
||||
le32_get_bits(rxv[2], MT_CRXV_HE_NUM_USER));
|
||||
|
||||
he_mu->ru_ch1[0] = FIELD_GET(MT_CRXV_HE_RU0, cpu_to_le32(rxv[3]));
|
||||
he_mu->ru_ch1[0] = le32_get_bits(rxv[3], MT_CRXV_HE_RU0);
|
||||
|
||||
if (status->bw >= RATE_INFO_BW_40) {
|
||||
he_mu->flags1 |= HE_BITS(MU_FLAGS1_CH2_RU_KNOWN);
|
||||
he_mu->ru_ch2[0] =
|
||||
FIELD_GET(MT_CRXV_HE_RU1, cpu_to_le32(rxv[3]));
|
||||
he_mu->ru_ch2[0] = le32_get_bits(rxv[3], MT_CRXV_HE_RU1);
|
||||
}
|
||||
|
||||
if (status->bw >= RATE_INFO_BW_80) {
|
||||
he_mu->ru_ch1[1] =
|
||||
FIELD_GET(MT_CRXV_HE_RU2, cpu_to_le32(rxv[3]));
|
||||
he_mu->ru_ch2[1] =
|
||||
FIELD_GET(MT_CRXV_HE_RU3, cpu_to_le32(rxv[3]));
|
||||
he_mu->ru_ch1[1] = le32_get_bits(rxv[3], MT_CRXV_HE_RU2);
|
||||
he_mu->ru_ch2[1] = le32_get_bits(rxv[3], MT_CRXV_HE_RU3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -340,7 +337,7 @@ mt7915_mac_decode_he_radiotap(struct sk_buff *skb,
|
||||
he->data5 = HE_PREP(DATA5_PE_DISAMBIG, PE_DISAMBIG, rxv[2]) |
|
||||
le16_encode_bits(ltf_size,
|
||||
IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE);
|
||||
if (cpu_to_le32(rxv[0]) & MT_PRXV_TXBF)
|
||||
if (le32_to_cpu(rxv[0]) & MT_PRXV_TXBF)
|
||||
he->data5 |= HE_BITS(DATA5_TXBF);
|
||||
he->data6 = HE_PREP(DATA6_TXOP, TXOP_DUR, rxv[14]) |
|
||||
HE_PREP(DATA6_DOPPLER, DOPPLER, rxv[14]);
|
||||
|
||||
Reference in New Issue
Block a user