Remove typedef from union.
Rename union.
Rename uses.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
u8 src[ETH_ALEN];
}__attribute__((packed));
-typedef union _frameqos {
+union frameqos {
u16 shortdata;
u8 chardata[2];
struct {
u16 reserved:1;
u16 txop:8;
}field;
-}frameqos,*pframeqos;
+};
/* SWEEP TABLE ENTRIES NUMBER*/
#define MAX_SWEEP_TAB_ENTRIES 42
u16 fc;
hdr = (struct rtllib_hdr_3addr *)buf;
fc = le16_to_cpu(hdr->frame_ctl);
- return (u8)((frameqos*)(buf + (((fc & RTLLIB_FCTL_TODS)&&(fc & RTLLIB_FCTL_FROMDS))? 30 : 24)))->field.tid;
+ return (u8)((union frameqos *)(buf + (((fc & RTLLIB_FCTL_TODS)&&(fc & RTLLIB_FCTL_FROMDS))? 30 : 24)))->field.tid;
}
/* just for debug purpose */
SeqNum = WLAN_GET_SEQ_SEQ(le16_to_cpu(hdr->seq_ctl));
if ((RTLLIB_QOS_HAS_SEQ(fc))&&\
- (((frameqos *)(skb->data + RTLLIB_3ADDR_LEN))->field.reserved)) {
+ (((union frameqos *)(skb->data + RTLLIB_3ADDR_LEN))->field.reserved)) {
bIsAggregateFrame = true;
}