diff options
author | Bitterblue Smith <rtl8821cerfe2@gmail.com> | 2024-09-20 22:27:30 +0300 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2024-09-26 09:26:08 +0800 |
commit | bbb6f9be7f99464d5ab7e2f321fa728d33eeec9a (patch) | |
tree | 0028f6a59db2c57821aa3cbb7f7cbd48d82e09ee /drivers/net/pcs/pcs-xpcs-nxp.c | |
parent | 7bf2f8fe4237ffe260d9cb603500f07ceee36ed8 (diff) |
wifi: rtw88: Parse the RX descriptor with a single function
rtw8703b_query_rx_desc(), rtw8723d_query_rx_desc(),
rtw8821c_query_rx_desc(), rtw8822b_query_rx_desc(), and
rtw8822c_query_rx_desc() are almost identical, so replace them all with
a single function, rtw_rx_query_rx_desc().
Also, access the RX descriptor using a struct with __le32 members and
le32_get_bits().
Tested with RTL8811CU, RTL8811AU, and RTL8812AU.
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Tested-by: Ping-Ke Shih <pkshih@realtek.com> # RTL8723DE and RTL8822CE
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/913f1747-38fc-4409-85a4-57bb9cee506b@gmail.com
Diffstat (limited to 'drivers/net/pcs/pcs-xpcs-nxp.c')
0 files changed, 0 insertions, 0 deletions