Commit 72e93e91 authored by Luciano Coelho's avatar Luciano Coelho Committed by John W. Linville

wl1271: use __packed annotation

This patch changes __attribute__ ((packed)) annotations to __packed in wl1271
code that was introduced in a recent patch in wireless-testing.

Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1311843c
...@@ -1002,7 +1002,7 @@ struct wl1271_acx_fw_tsf_information { ...@@ -1002,7 +1002,7 @@ struct wl1271_acx_fw_tsf_information {
__le32 last_tbtt_low; __le32 last_tbtt_low;
u8 last_dtim_count; u8 last_dtim_count;
u8 padding[3]; u8 padding[3];
} __attribute__ ((packed)); } __packed;
enum { enum {
ACX_WAKE_UP_CONDITIONS = 0x0002, ACX_WAKE_UP_CONDITIONS = 0x0002,
......
...@@ -76,7 +76,7 @@ struct basic_scan_params { ...@@ -76,7 +76,7 @@ struct basic_scan_params {
u8 use_ssid_list; u8 use_ssid_list;
u8 scan_tag; u8 scan_tag;
u8 padding2; u8 padding2;
} __attribute__ ((packed)); } __packed;
struct basic_scan_channel_params { struct basic_scan_channel_params {
/* Duration in TU to wait for frames on a channel for active scan */ /* Duration in TU to wait for frames on a channel for active scan */
...@@ -91,19 +91,19 @@ struct basic_scan_channel_params { ...@@ -91,19 +91,19 @@ struct basic_scan_channel_params {
u8 dfs_candidate; u8 dfs_candidate;
u8 activity_detected; u8 activity_detected;
u8 pad; u8 pad;
} __attribute__ ((packed)); } __packed;
struct wl1271_cmd_scan { struct wl1271_cmd_scan {
struct wl1271_cmd_header header; struct wl1271_cmd_header header;
struct basic_scan_params params; struct basic_scan_params params;
struct basic_scan_channel_params channels[WL1271_SCAN_MAX_CHANNELS]; struct basic_scan_channel_params channels[WL1271_SCAN_MAX_CHANNELS];
} __attribute__ ((packed)); } __packed;
struct wl1271_cmd_trigger_scan_to { struct wl1271_cmd_trigger_scan_to {
struct wl1271_cmd_header header; struct wl1271_cmd_header header;
__le32 timeout; __le32 timeout;
} __attribute__ ((packed)); } __packed;
#endif /* __WL1271_SCAN_H__ */ #endif /* __WL1271_SCAN_H__ */
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