staging: vt6656: csBeacon_xmit merge structures.
PATCH 1/2 staging: vt6656: csBeacon_xmit merge structures.
Merge structures typedef struct tagSTxShortBufHead and the members of struct vnt_tx_datahead_ab to form single structure vnt_tx_short_buf_head.
Remove the duplicate members in struct vnt_beacon_buffer already in typedef struct tagSTxShortBufHead.
This removes the need for any pointer arithmetic.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/desc.h | 8 ------ drivers/staging/vt6656/rxtx.c | 61 +++++++++++++++++++++---------------------- drivers/staging/vt6656/rxtx.h | 11 ++++++-- 3 files changed, 39 insertions(+), 41 deletions(-)
drivers/staging/vt6656/desc.h +0 -8
@@ -146,14 +146,6 @@/* * TX FIFO header */ - -typedef struct tagSTxShortBufHead { -u16 wFIFOCtl; -u16 wTimeStamp; -} __attribute__ ((__packed__ )) -STxShortBufHead , *PSTxShortBufHead ; -typedef const STxShortBufHead *PCSTxShortBufHead ; - typedef struct tagSBEACONCtl { u32 BufReady:1; u32 TSF:15;
drivers/staging/vt6656/rxtx.c +30 -31
81 lines not on this page · raw message
drivers/staging/vt6656/rxtx.h +9 -2
@@ -230,12 +230,19 @@ struct vnt_tx_buffer {union vnt_tx_head tx_head; } __packed; +struct vnt_tx_short_buf_head { +u16 fifo_ctl; +u16 time_stamp; +struct vnt_phy_field ab; +u16 duration; +u16 time_stamp_off; +} __packed; +struct vnt_beacon_buffer {u8 byType;u8 byPKTNO;u16 wTxByteCount; -u16 wFIFOCtl; -u16 wTimeStamp; +struct vnt_tx_short_buf_head short_head; } __packed;void vDMA0_tx_80211 (struct vnt_private *,struct sk_buff *skb);
Signature · 1 line
1.8.4.4