Commit 7d3864d1 authored by Bas van den Berg's avatar Bas van den Berg Committed by Greg Kroah-Hartman

Staging: wlan-ng: fixed packed checkpatch warnings

Signed-off-by: default avatarBas van den Berg <b.van.den.berg.nl@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 37af07d1
This diff is collapsed.
...@@ -134,20 +134,20 @@ struct wlan_ethhdr { ...@@ -134,20 +134,20 @@ struct wlan_ethhdr {
u8 daddr[WLAN_ETHADDR_LEN]; u8 daddr[WLAN_ETHADDR_LEN];
u8 saddr[WLAN_ETHADDR_LEN]; u8 saddr[WLAN_ETHADDR_LEN];
u16 type; u16 type;
} __attribute__ ((packed)); } __packed;
/* local llc header type */ /* local llc header type */
struct wlan_llc { struct wlan_llc {
u8 dsap; u8 dsap;
u8 ssap; u8 ssap;
u8 ctl; u8 ctl;
} __attribute__ ((packed)); } __packed;
/* local snap header type */ /* local snap header type */
struct wlan_snap { struct wlan_snap {
u8 oui[WLAN_IEEE_OUI_LEN]; u8 oui[WLAN_IEEE_OUI_LEN];
u16 type; u16 type;
} __attribute__ ((packed)); } __packed;
/* Circular include trick */ /* Circular include trick */
struct wlandevice; struct wlandevice;
......
...@@ -154,7 +154,7 @@ struct p80211_hdr_a3 { ...@@ -154,7 +154,7 @@ struct p80211_hdr_a3 {
u8 a2[ETH_ALEN]; u8 a2[ETH_ALEN];
u8 a3[ETH_ALEN]; u8 a3[ETH_ALEN];
u16 seq; u16 seq;
} __attribute__ ((packed)); } __packed;
struct p80211_hdr_a4 { struct p80211_hdr_a4 {
u16 fc; u16 fc;
...@@ -164,12 +164,12 @@ struct p80211_hdr_a4 { ...@@ -164,12 +164,12 @@ struct p80211_hdr_a4 {
u8 a3[ETH_ALEN]; u8 a3[ETH_ALEN];
u16 seq; u16 seq;
u8 a4[ETH_ALEN]; u8 a4[ETH_ALEN];
} __attribute__ ((packed)); } __packed;
union p80211_hdr { union p80211_hdr {
struct p80211_hdr_a3 a3; struct p80211_hdr_a3 a3;
struct p80211_hdr_a4 a4; struct p80211_hdr_a4 a4;
} __attribute__ ((packed)); } __packed;
/* Frame and header length macros */ /* Frame and header length macros */
......
...@@ -84,6 +84,6 @@ struct p80211ioctl_req { ...@@ -84,6 +84,6 @@ struct p80211ioctl_req {
u32 magic; u32 magic;
u16 len; u16 len;
u32 result; u32 result;
} __attribute__ ((packed)); } __packed;
#endif /* _P80211IOCTL_H */ #endif /* _P80211IOCTL_H */
...@@ -53,7 +53,7 @@ struct p80211msg_dot11req_mibget { ...@@ -53,7 +53,7 @@ struct p80211msg_dot11req_mibget {
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
p80211item_unk392_t mibattribute; p80211item_unk392_t mibattribute;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_dot11req_mibset { struct p80211msg_dot11req_mibset {
u32 msgcode; u32 msgcode;
...@@ -61,7 +61,7 @@ struct p80211msg_dot11req_mibset { ...@@ -61,7 +61,7 @@ struct p80211msg_dot11req_mibset {
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
p80211item_unk392_t mibattribute; p80211item_unk392_t mibattribute;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_dot11req_scan { struct p80211msg_dot11req_scan {
u32 msgcode; u32 msgcode;
...@@ -81,7 +81,7 @@ struct p80211msg_dot11req_scan { ...@@ -81,7 +81,7 @@ struct p80211msg_dot11req_scan {
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
p80211item_uint32_t numbss; p80211item_uint32_t numbss;
p80211item_uint32_t append; p80211item_uint32_t append;
} __attribute__ ((packed)); } __packed;
struct p80211msg_dot11req_scan_results { struct p80211msg_dot11req_scan_results {
u32 msgcode; u32 msgcode;
...@@ -130,7 +130,7 @@ struct p80211msg_dot11req_scan_results { ...@@ -130,7 +130,7 @@ struct p80211msg_dot11req_scan_results {
p80211item_uint32_t supprate6; p80211item_uint32_t supprate6;
p80211item_uint32_t supprate7; p80211item_uint32_t supprate7;
p80211item_uint32_t supprate8; p80211item_uint32_t supprate8;
} __attribute__ ((packed)); } __packed;
struct p80211msg_dot11req_start { struct p80211msg_dot11req_start {
u32 msgcode; u32 msgcode;
...@@ -168,7 +168,7 @@ struct p80211msg_dot11req_start { ...@@ -168,7 +168,7 @@ struct p80211msg_dot11req_start {
p80211item_uint32_t operationalrate7; p80211item_uint32_t operationalrate7;
p80211item_uint32_t operationalrate8; p80211item_uint32_t operationalrate8;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_lnxreq_ifstate { struct p80211msg_lnxreq_ifstate {
u32 msgcode; u32 msgcode;
...@@ -176,7 +176,7 @@ struct p80211msg_lnxreq_ifstate { ...@@ -176,7 +176,7 @@ struct p80211msg_lnxreq_ifstate {
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
p80211item_uint32_t ifstate; p80211item_uint32_t ifstate;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_lnxreq_wlansniff { struct p80211msg_lnxreq_wlansniff {
u32 msgcode; u32 msgcode;
...@@ -190,7 +190,7 @@ struct p80211msg_lnxreq_wlansniff { ...@@ -190,7 +190,7 @@ struct p80211msg_lnxreq_wlansniff {
p80211item_uint32_t stripfcs; p80211item_uint32_t stripfcs;
p80211item_uint32_t packet_trunc; p80211item_uint32_t packet_trunc;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_lnxreq_hostwep { struct p80211msg_lnxreq_hostwep {
u32 msgcode; u32 msgcode;
...@@ -199,7 +199,7 @@ struct p80211msg_lnxreq_hostwep { ...@@ -199,7 +199,7 @@ struct p80211msg_lnxreq_hostwep {
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
p80211item_uint32_t decrypt; p80211item_uint32_t decrypt;
p80211item_uint32_t encrypt; p80211item_uint32_t encrypt;
} __attribute__ ((packed)); } __packed;
struct p80211msg_lnxreq_commsquality { struct p80211msg_lnxreq_commsquality {
u32 msgcode; u32 msgcode;
...@@ -211,7 +211,7 @@ struct p80211msg_lnxreq_commsquality { ...@@ -211,7 +211,7 @@ struct p80211msg_lnxreq_commsquality {
p80211item_uint32_t level; p80211item_uint32_t level;
p80211item_uint32_t noise; p80211item_uint32_t noise;
p80211item_uint32_t txrate; p80211item_uint32_t txrate;
} __attribute__ ((packed)); } __packed;
struct p80211msg_lnxreq_autojoin { struct p80211msg_lnxreq_autojoin {
u32 msgcode; u32 msgcode;
...@@ -221,7 +221,7 @@ struct p80211msg_lnxreq_autojoin { ...@@ -221,7 +221,7 @@ struct p80211msg_lnxreq_autojoin {
u8 pad_19D[3]; u8 pad_19D[3];
p80211item_uint32_t authtype; p80211item_uint32_t authtype;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_p2req_readpda { struct p80211msg_p2req_readpda {
u32 msgcode; u32 msgcode;
...@@ -229,7 +229,7 @@ struct p80211msg_p2req_readpda { ...@@ -229,7 +229,7 @@ struct p80211msg_p2req_readpda {
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
p80211item_unk1024_t pda; p80211item_unk1024_t pda;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_p2req_ramdl_state { struct p80211msg_p2req_ramdl_state {
u32 msgcode; u32 msgcode;
...@@ -238,7 +238,7 @@ struct p80211msg_p2req_ramdl_state { ...@@ -238,7 +238,7 @@ struct p80211msg_p2req_ramdl_state {
p80211item_uint32_t enable; p80211item_uint32_t enable;
p80211item_uint32_t exeaddr; p80211item_uint32_t exeaddr;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_p2req_ramdl_write { struct p80211msg_p2req_ramdl_write {
u32 msgcode; u32 msgcode;
...@@ -248,7 +248,7 @@ struct p80211msg_p2req_ramdl_write { ...@@ -248,7 +248,7 @@ struct p80211msg_p2req_ramdl_write {
p80211item_uint32_t len; p80211item_uint32_t len;
p80211item_unk4096_t data; p80211item_unk4096_t data;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_p2req_flashdl_state { struct p80211msg_p2req_flashdl_state {
u32 msgcode; u32 msgcode;
...@@ -256,7 +256,7 @@ struct p80211msg_p2req_flashdl_state { ...@@ -256,7 +256,7 @@ struct p80211msg_p2req_flashdl_state {
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
p80211item_uint32_t enable; p80211item_uint32_t enable;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
struct p80211msg_p2req_flashdl_write { struct p80211msg_p2req_flashdl_write {
u32 msgcode; u32 msgcode;
...@@ -266,6 +266,6 @@ struct p80211msg_p2req_flashdl_write { ...@@ -266,6 +266,6 @@ struct p80211msg_p2req_flashdl_write {
p80211item_uint32_t len; p80211item_uint32_t len;
p80211item_unk4096_t data; p80211item_unk4096_t data;
p80211item_uint32_t resultcode; p80211item_uint32_t resultcode;
} __attribute__ ((packed)); } __packed;
#endif #endif
...@@ -222,21 +222,21 @@ ...@@ -222,21 +222,21 @@
typedef struct wlan_ie { typedef struct wlan_ie {
u8 eid; u8 eid;
u8 len; u8 len;
} __attribute__ ((packed)) wlan_ie_t; } __packed wlan_ie_t;
/*-- Service Set Identity (SSID) -----------------*/ /*-- Service Set Identity (SSID) -----------------*/
typedef struct wlan_ie_ssid { typedef struct wlan_ie_ssid {
u8 eid; u8 eid;
u8 len; u8 len;
u8 ssid[1]; /* may be zero, ptrs may overlap */ u8 ssid[1]; /* may be zero, ptrs may overlap */
} __attribute__ ((packed)) wlan_ie_ssid_t; } __packed wlan_ie_ssid_t;
/*-- Supported Rates -----------------------------*/ /*-- Supported Rates -----------------------------*/
typedef struct wlan_ie_supp_rates { typedef struct wlan_ie_supp_rates {
u8 eid; u8 eid;
u8 len; u8 len;
u8 rates[1]; /* had better be at LEAST one! */ u8 rates[1]; /* had better be at LEAST one! */
} __attribute__ ((packed)) wlan_ie_supp_rates_t; } __packed wlan_ie_supp_rates_t;
/*-- FH Parameter Set ----------------------------*/ /*-- FH Parameter Set ----------------------------*/
typedef struct wlan_ie_fh_parms { typedef struct wlan_ie_fh_parms {
...@@ -246,14 +246,14 @@ typedef struct wlan_ie_fh_parms { ...@@ -246,14 +246,14 @@ typedef struct wlan_ie_fh_parms {
u8 hopset; u8 hopset;
u8 hoppattern; u8 hoppattern;
u8 hopindex; u8 hopindex;
} __attribute__ ((packed)) wlan_ie_fh_parms_t; } __packed wlan_ie_fh_parms_t;
/*-- DS Parameter Set ----------------------------*/ /*-- DS Parameter Set ----------------------------*/
typedef struct wlan_ie_ds_parms { typedef struct wlan_ie_ds_parms {
u8 eid; u8 eid;
u8 len; u8 len;
u8 curr_ch; u8 curr_ch;
} __attribute__ ((packed)) wlan_ie_ds_parms_t; } __packed wlan_ie_ds_parms_t;
/*-- CF Parameter Set ----------------------------*/ /*-- CF Parameter Set ----------------------------*/
...@@ -264,7 +264,7 @@ typedef struct wlan_ie_cf_parms { ...@@ -264,7 +264,7 @@ typedef struct wlan_ie_cf_parms {
u8 cfp_period; u8 cfp_period;
u16 cfp_maxdur; u16 cfp_maxdur;
u16 cfp_durremaining; u16 cfp_durremaining;
} __attribute__ ((packed)) wlan_ie_cf_parms_t; } __packed wlan_ie_cf_parms_t;
/*-- TIM ------------------------------------------*/ /*-- TIM ------------------------------------------*/
typedef struct wlan_ie_tim { typedef struct wlan_ie_tim {
...@@ -274,21 +274,21 @@ typedef struct wlan_ie_tim { ...@@ -274,21 +274,21 @@ typedef struct wlan_ie_tim {
u8 dtim_period; u8 dtim_period;
u8 bitmap_ctl; u8 bitmap_ctl;
u8 virt_bm[1]; u8 virt_bm[1];
} __attribute__ ((packed)) wlan_ie_tim_t; } __packed wlan_ie_tim_t;
/*-- IBSS Parameter Set ---------------------------*/ /*-- IBSS Parameter Set ---------------------------*/
typedef struct wlan_ie_ibss_parms { typedef struct wlan_ie_ibss_parms {
u8 eid; u8 eid;
u8 len; u8 len;
u16 atim_win; u16 atim_win;
} __attribute__ ((packed)) wlan_ie_ibss_parms_t; } __packed wlan_ie_ibss_parms_t;
/*-- Challenge Text ------------------------------*/ /*-- Challenge Text ------------------------------*/
typedef struct wlan_ie_challenge { typedef struct wlan_ie_challenge {
u8 eid; u8 eid;
u8 len; u8 len;
u8 challenge[1]; u8 challenge[1];
} __attribute__ ((packed)) wlan_ie_challenge_t; } __packed wlan_ie_challenge_t;
/*-------------------------------------------------*/ /*-------------------------------------------------*/
/* Frame Types */ /* Frame Types */
......
...@@ -54,6 +54,6 @@ struct p80211msg { ...@@ -54,6 +54,6 @@ struct p80211msg {
u32 msgcode; u32 msgcode;
u32 msglen; u32 msglen;
u8 devname[WLAN_DEVNAMELEN_MAX]; u8 devname[WLAN_DEVNAMELEN_MAX];
} __attribute__ ((packed)); } __packed;
#endif /* _P80211MSG_H */ #endif /* _P80211MSG_H */
...@@ -217,49 +217,49 @@ typedef struct p80211enum { ...@@ -217,49 +217,49 @@ typedef struct p80211enum {
/* Template pascal string */ /* Template pascal string */
typedef struct p80211pstr { typedef struct p80211pstr {
u8 len; u8 len;
} __attribute__ ((packed)) p80211pstr_t; } __packed p80211pstr_t;
typedef struct p80211pstrd { typedef struct p80211pstrd {
u8 len; u8 len;
u8 data[0]; u8 data[0];
} __attribute__ ((packed)) p80211pstrd_t; } __packed p80211pstrd_t;
/* Maximum pascal string */ /* Maximum pascal string */
typedef struct p80211pstr255 { typedef struct p80211pstr255 {
u8 len; u8 len;
u8 data[MAXLEN_PSTR255]; u8 data[MAXLEN_PSTR255];
} __attribute__ ((packed)) p80211pstr255_t; } __packed p80211pstr255_t;
/* pascal string for macaddress and bssid */ /* pascal string for macaddress and bssid */
typedef struct p80211pstr6 { typedef struct p80211pstr6 {
u8 len; u8 len;
u8 data[MAXLEN_PSTR6]; u8 data[MAXLEN_PSTR6];
} __attribute__ ((packed)) p80211pstr6_t; } __packed p80211pstr6_t;
/* pascal string for channel list */ /* pascal string for channel list */
typedef struct p80211pstr14 { typedef struct p80211pstr14 {
u8 len; u8 len;
u8 data[MAXLEN_PSTR14]; u8 data[MAXLEN_PSTR14];
} __attribute__ ((packed)) p80211pstr14_t; } __packed p80211pstr14_t;
/* pascal string for ssid */ /* pascal string for ssid */
typedef struct p80211pstr32 { typedef struct p80211pstr32 {
u8 len; u8 len;
u8 data[MAXLEN_PSTR32]; u8 data[MAXLEN_PSTR32];
} __attribute__ ((packed)) p80211pstr32_t; } __packed p80211pstr32_t;
/* MAC address array */ /* MAC address array */
typedef struct p80211macarray { typedef struct p80211macarray {
u32 cnt; u32 cnt;
u8 data[1][MAXLEN_PSTR6]; u8 data[1][MAXLEN_PSTR6];
} __attribute__ ((packed)) p80211macarray_t; } __packed p80211macarray_t;
/* prototype template */ /* prototype template */
typedef struct p80211item { typedef struct p80211item {
u32 did; u32 did;
u16 status; u16 status;
u16 len; u16 len;
} __attribute__ ((packed)) p80211item_t; } __packed p80211item_t;
/* prototype template w/ data item */ /* prototype template w/ data item */
typedef struct p80211itemd { typedef struct p80211itemd {
...@@ -267,7 +267,7 @@ typedef struct p80211itemd { ...@@ -267,7 +267,7 @@ typedef struct p80211itemd {
u16 status; u16 status;
u16 len; u16 len;
u8 data[0]; u8 data[0];
} __attribute__ ((packed)) p80211itemd_t; } __packed p80211itemd_t;
/* message data item for int, BOUNDEDINT, ENUMINT */ /* message data item for int, BOUNDEDINT, ENUMINT */
typedef struct p80211item_uint32 { typedef struct p80211item_uint32 {
...@@ -275,7 +275,7 @@ typedef struct p80211item_uint32 { ...@@ -275,7 +275,7 @@ typedef struct p80211item_uint32 {
u16 status; u16 status;
u16 len; u16 len;
u32 data; u32 data;
} __attribute__ ((packed)) p80211item_uint32_t; } __packed p80211item_uint32_t;
/* message data item for OCTETSTR, DISPLAYSTR */ /* message data item for OCTETSTR, DISPLAYSTR */
typedef struct p80211item_pstr6 { typedef struct p80211item_pstr6 {
...@@ -283,7 +283,7 @@ typedef struct p80211item_pstr6 { ...@@ -283,7 +283,7 @@ typedef struct p80211item_pstr6 {
u16 status; u16 status;
u16 len; u16 len;
p80211pstr6_t data; p80211pstr6_t data;
} __attribute__ ((packed)) p80211item_pstr6_t; } __packed p80211item_pstr6_t;
/* message data item for OCTETSTR, DISPLAYSTR */ /* message data item for OCTETSTR, DISPLAYSTR */
typedef struct p80211item_pstr14 { typedef struct p80211item_pstr14 {
...@@ -291,7 +291,7 @@ typedef struct p80211item_pstr14 { ...@@ -291,7 +291,7 @@ typedef struct p80211item_pstr14 {
u16 status; u16 status;
u16 len; u16 len;
p80211pstr14_t data; p80211pstr14_t data;
} __attribute__ ((packed)) p80211item_pstr14_t; } __packed p80211item_pstr14_t;
/* message data item for OCTETSTR, DISPLAYSTR */ /* message data item for OCTETSTR, DISPLAYSTR */
typedef struct p80211item_pstr32 { typedef struct p80211item_pstr32 {
...@@ -299,7 +299,7 @@ typedef struct p80211item_pstr32 { ...@@ -299,7 +299,7 @@ typedef struct p80211item_pstr32 {
u16 status; u16 status;
u16 len; u16 len;
p80211pstr32_t data; p80211pstr32_t data;
} __attribute__ ((packed)) p80211item_pstr32_t; } __packed p80211item_pstr32_t;
/* message data item for OCTETSTR, DISPLAYSTR */ /* message data item for OCTETSTR, DISPLAYSTR */
typedef struct p80211item_pstr255 { typedef struct p80211item_pstr255 {
...@@ -307,7 +307,7 @@ typedef struct p80211item_pstr255 { ...@@ -307,7 +307,7 @@ typedef struct p80211item_pstr255 {
u16 status; u16 status;
u16 len; u16 len;
p80211pstr255_t data; p80211pstr255_t data;
} __attribute__ ((packed)) p80211item_pstr255_t; } __packed p80211item_pstr255_t;
/* message data item for UNK 392, namely mib items */ /* message data item for UNK 392, namely mib items */
typedef struct p80211item_unk392 { typedef struct p80211item_unk392 {
...@@ -315,7 +315,7 @@ typedef struct p80211item_unk392 { ...@@ -315,7 +315,7 @@ typedef struct p80211item_unk392 {
u16 status; u16 status;
u16 len; u16 len;
u8 data[MAXLEN_MIBATTRIBUTE]; u8 data[MAXLEN_MIBATTRIBUTE];
} __attribute__ ((packed)) p80211item_unk392_t; } __packed p80211item_unk392_t;
/* message data item for UNK 1025, namely p2 pdas */ /* message data item for UNK 1025, namely p2 pdas */
typedef struct p80211item_unk1024 { typedef struct p80211item_unk1024 {
...@@ -323,7 +323,7 @@ typedef struct p80211item_unk1024 { ...@@ -323,7 +323,7 @@ typedef struct p80211item_unk1024 {
u16 status; u16 status;
u16 len; u16 len;
u8 data[1024]; u8 data[1024];
} __attribute__ ((packed)) p80211item_unk1024_t; } __packed p80211item_unk1024_t;
/* message data item for UNK 4096, namely p2 download chunks */ /* message data item for UNK 4096, namely p2 download chunks */
typedef struct p80211item_unk4096 { typedef struct p80211item_unk4096 {
...@@ -331,7 +331,7 @@ typedef struct p80211item_unk4096 { ...@@ -331,7 +331,7 @@ typedef struct p80211item_unk4096 {
u16 status; u16 status;
u16 len; u16 len;
u8 data[4096]; u8 data[4096];
} __attribute__ ((packed)) p80211item_unk4096_t; } __packed p80211item_unk4096_t;
struct catlistitem; struct catlistitem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment