提交 18beb61d 编写于 作者: D Dedy Lansky 提交者: Kalle Valo

wil6210: fix MID valid bits in Rx status message

Fix incorrect definitions of MAC ID bits inside Rx status message.
Signed-off-by: NDedy Lansky <dlansky@codeaurora.org>
Signed-off-by: NMaya Erez <merez@codeaurora.org>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 c99d5f8d
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#define WIL_RX_EDMA_DLPF_LU_MISS_TID_POS 5 #define WIL_RX_EDMA_DLPF_LU_MISS_TID_POS 5
#define WIL_RX_EDMA_MID_VALID_BIT BIT(22) #define WIL_RX_EDMA_MID_VALID_BIT BIT(20)
#define WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS 16 #define WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS 16
#define WIL_EDMA_DESC_TX_MAC_CFG_0_QID_LEN 6 #define WIL_EDMA_DESC_TX_MAC_CFG_0_QID_LEN 6
...@@ -244,8 +244,8 @@ struct wil_ring_tx_status { ...@@ -244,8 +244,8 @@ struct wil_ring_tx_status {
* calculated, Bit1- L4Err - TCP/UDP Checksum Error * calculated, Bit1- L4Err - TCP/UDP Checksum Error
* bit 7 : Reserved:1 * bit 7 : Reserved:1
* bit 8..19 : Flow ID:12 - MSDU flow ID * bit 8..19 : Flow ID:12 - MSDU flow ID
* bit 20..21 : MID:2 - The MAC ID * bit 20 : MID_V:1 - The MAC ID field is valid
* bit 22 : MID_V:1 - The MAC ID field is valid * bit 21..22 : MID:2 - The MAC ID
* bit 23 : L3T:1 - IP types: 0-IPv6, 1-IPv4 * bit 23 : L3T:1 - IP types: 0-IPv6, 1-IPv4
* bit 24 : L4T:1 - Layer 4 Type: 0-UDP, 1-TCP * bit 24 : L4T:1 - Layer 4 Type: 0-UDP, 1-TCP
* bit 25 : BC:1 - The received MPDU is broadcast * bit 25 : BC:1 - The received MPDU is broadcast
...@@ -479,7 +479,7 @@ static inline int wil_rx_status_get_mid(void *msg) ...@@ -479,7 +479,7 @@ static inline int wil_rx_status_get_mid(void *msg)
return 0; /* use the default MID */ return 0; /* use the default MID */
return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0,
20, 21); 21, 22);
} }
static inline int wil_rx_status_get_error(void *msg) static inline int wil_rx_status_get_error(void *msg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册