Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hal/hal_halmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ static inline u8 is_valid_id_status(enum halmac_feature_id id, enum halmac_cmd_p
if (status == HALMAC_CMD_PROCESS_RCVD)
return _FALSE;
if ((status != HALMAC_CMD_PROCESS_DONE)
|| (status != HALMAC_CMD_PROCESS_ERROR))
&& (status != HALMAC_CMD_PROCESS_ERROR))
RTW_WARN("%s: %s unexpected status(0x%x)!\n",
__FUNCTION__, RTW_HALMAC_FEATURE_NAME[id],
status);
Expand Down
41 changes: 0 additions & 41 deletions include/rtw_recv.h
Original file line number Diff line number Diff line change
Expand Up @@ -759,47 +759,6 @@ __inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)

}

__inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem)
{
/* due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame */
/* from any given member of recv_frame. */
/* rxmem indicates the any member/address in recv_frame */

return (union recv_frame *)(((SIZE_PTR)rxmem >> RXFRAME_ALIGN) << RXFRAME_ALIGN);

}

__inline static union recv_frame *pkt_to_recvframe(_pkt *pkt)
{

u8 *buf_star;
union recv_frame *precv_frame;
precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);

return precv_frame;
}

__inline static u8 *pkt_to_recvmem(_pkt *pkt)
{
/* return the rx_head */

union recv_frame *precv_frame = pkt_to_recvframe(pkt);

return precv_frame->u.hdr.rx_head;

}

__inline static u8 *pkt_to_recvdata(_pkt *pkt)
{
/* return the rx_data */

union recv_frame *precv_frame = pkt_to_recvframe(pkt);

return precv_frame->u.hdr.rx_data;

}


__inline static sint get_recvframe_len(union recv_frame *precvframe)
{
return precvframe->u.hdr.len;
Expand Down
Loading