aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-08-17 15:46:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-24 16:32:03 -0400
commit8d5ad08525f1a8e0484d125ba155dbd3c3282ab8 (patch)
tree8ef401f2fd9953b131dc676979141e7de0a63f79 /drivers
parent110ff6db6f6fbb946c099f49f666b59258746048 (diff)
wl1251: add missing __packed modifier for some structs
Several acx and cmd structures are missing __packed modifier, add it. This was noticed while comparing them with corresponding wl1271 code. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Acked-by: Kalle Valo <kvalo@adurom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_acx.h6
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_cmd.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_acx.h b/drivers/net/wireless/wl12xx/wl1251_acx.h
index 842df310d92..9864124d9e1 100644
--- a/drivers/net/wireless/wl12xx/wl1251_acx.h
+++ b/drivers/net/wireless/wl12xx/wl1251_acx.h
@@ -37,7 +37,7 @@ struct acx_header {
37 37
38 /* payload length (not including headers */ 38 /* payload length (not including headers */
39 u16 len; 39 u16 len;
40}; 40} __packed;
41 41
42struct acx_error_counter { 42struct acx_error_counter {
43 struct acx_header header; 43 struct acx_header header;
@@ -471,7 +471,7 @@ struct acx_conn_monit_params {
471 471
472 u32 synch_fail_thold; /* number of beacons missed */ 472 u32 synch_fail_thold; /* number of beacons missed */
473 u32 bss_lose_timeout; /* number of TU's from synch fail */ 473 u32 bss_lose_timeout; /* number of TU's from synch fail */
474}; 474} __packed;
475 475
476enum { 476enum {
477 SG_ENABLE = 0, 477 SG_ENABLE = 0,
@@ -1056,7 +1056,7 @@ struct acx_rate_class {
1056 u8 long_retry_limit; 1056 u8 long_retry_limit;
1057 u8 aflags; 1057 u8 aflags;
1058 u8 reserved; 1058 u8 reserved;
1059}; 1059} __packed;
1060 1060
1061struct acx_rate_policy { 1061struct acx_rate_policy {
1062 struct acx_header header; 1062 struct acx_header header;
diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.h b/drivers/net/wireless/wl12xx/wl1251_cmd.h
index a9e4991369b..60d7e522486 100644
--- a/drivers/net/wireless/wl12xx/wl1251_cmd.h
+++ b/drivers/net/wireless/wl12xx/wl1251_cmd.h
@@ -111,7 +111,7 @@ struct wl1251_cmd_header {
111struct wl1251_command { 111struct wl1251_command {
112 struct wl1251_cmd_header header; 112 struct wl1251_cmd_header header;
113 u8 parameters[MAX_CMD_PARAMS]; 113 u8 parameters[MAX_CMD_PARAMS];
114}; 114} __packed;
115 115
116enum { 116enum {
117 CMD_MAILBOX_IDLE = 0, 117 CMD_MAILBOX_IDLE = 0,
@@ -164,7 +164,7 @@ struct cmd_read_write_memory {
164 of this field is the Host in WRITE command or the Wilink in READ 164 of this field is the Host in WRITE command or the Wilink in READ
165 command. */ 165 command. */
166 u8 value[MAX_READ_SIZE]; 166 u8 value[MAX_READ_SIZE];
167}; 167} __packed;
168 168
169#define CMDMBOX_HEADER_LEN 4 169#define CMDMBOX_HEADER_LEN 4
170#define CMDMBOX_INFO_ELEM_HEADER_LEN 4 170#define CMDMBOX_INFO_ELEM_HEADER_LEN 4
@@ -339,7 +339,7 @@ struct wl1251_cmd_trigger_scan_to {
339 struct wl1251_cmd_header header; 339 struct wl1251_cmd_header header;
340 340
341 u32 timeout; 341 u32 timeout;
342}; 342} __packed;
343 343
344/* HW encryption keys */ 344/* HW encryption keys */
345#define NUM_ACCESS_CATEGORIES_COPY 4 345#define NUM_ACCESS_CATEGORIES_COPY 4