Skip to contentSkip to conversation

staging: vt6655: rxtx: Replace typedef struct tagSMICHDRHead

PATCH New Malcolm Priestley 1 participant 1 message Aug 9, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655: rxtx: Replace typedef struct tagSMICHDRHead

With struct vnt_mic_hdr replacing pointer assigments in s_vFillTxKey.

The size of new struture is the same as old with packing

Create the struture rxtx.h where it is only used.

---
 drivers/staging/vt6655/desc.h | 11 ------
 drivers/staging/vt6655/rxtx.c | 88 +++++++++++++++++++++----------------------
 drivers/staging/vt6655/rxtx.h | 17 +++++++++
 3 files changed, 60 insertions(+), 56 deletions(-)
drivers/staging/vt6655/desc.h +0 -11
index 05efa4e..d3c9b0c 100644
@@ -550,17 +550,6 @@ typedef struct tagSTxDataHead_a_FB {
 STxDataHead_a_FB, *PSTxDataHead_a_FB;
 typedef const STxDataHead_a_FB *PCSTxDataHead_a_FB;
 
-//
-// MICHDR data header
-//
-typedef struct tagSMICHDRHead {
-	u32 adwHDR0[4];
-	u32 adwHDR1[4];
-	u32 adwHDR2[4];
-} __attribute__ ((__packed__))
-SMICHDRHead, *PSMICHDRHead;
-typedef const SMICHDRHead *PCSMICHDRHead;
-
 typedef struct tagSBEACONCtl {
 	u32 BufReady:1;
 	u32 TSF:15;
drivers/staging/vt6655/rxtx.c +43 -45

183 lines not on this page · raw message

drivers/staging/vt6655/rxtx.h +17 -0
index 601bedb..a9a8ede 100644
@@ -39,6 +39,23 @@
 
 /*---------------------  Export Functions  --------------------------*/
 
+/* MIC HDR data header */
+struct vnt_mic_hdr {
+	u8 id;
+	u8 tx_priority;
+	u8 mic_addr2[ETH_ALEN];
+	u8 ccmp_pn[6];
+	__be16 payload_len;
+	__be16 hlen;
+	__le16 frame_control;
+	u8 addr1[ETH_ALEN];
+	u8 addr2[ETH_ALEN];
+	u8 addr3[ETH_ALEN];
+	__le16 seq_ctrl;
+	u8 addr4[ETH_ALEN];
+	u16 packing; /* packing to 48 bytes */
+} __packed;
+
 void
 vGenerateMACHeader(
 	PSDevice         pDevice,
Signature · 1 line
1.9.1