Skip to content

Commit

Permalink
wl1271: added missing packed modifier in some cmd structs
Browse files Browse the repository at this point in the history
Some of the struct definitions in the wl1271_acx.h file were missing the
__attribute__ ((packed)) modifier.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Oct 27, 2009
1 parent d0f63b2 commit fb46f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/wl12xx/wl1271_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct cmd_read_write_memory {
of this field is the Host in WRITE command or the Wilink in READ
command. */
u8 value[MAX_READ_SIZE];
};
} __attribute__ ((packed));

#define CMDMBOX_HEADER_LEN 4
#define CMDMBOX_INFO_ELEM_HEADER_LEN 4
Expand Down Expand Up @@ -399,12 +399,12 @@ struct wl1271_cmd_trigger_scan_to {
struct wl1271_cmd_header header;

__le32 timeout;
};
} __attribute__ ((packed));

struct wl1271_cmd_test_header {
u8 id;
u8 padding[3];
};
} __attribute__ ((packed));

enum wl1271_channel_tune_bands {
WL1271_CHANNEL_TUNE_BAND_2_4,
Expand Down

0 comments on commit fb46f26

Please sign in to comment.