Skip to content

Commit

Permalink
libertas: convert new uses of __attribute__ ((packed)) to __packed
Browse files Browse the repository at this point in the history
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jul 14, 2010
1 parent b3f194e commit beabe91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/libertas/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ struct cmd_key_material {

__le16 action;
struct MrvlIEtype_keyParamSet param;
} __attribute__ ((packed));
} __packed;

static int lbs_set_key_material(struct lbs_private *priv,
int key_type,
Expand Down Expand Up @@ -1395,7 +1395,7 @@ struct cmd_monitor_mode {

__le16 action;
__le16 mode;
} __attribute__ ((packed));
} __packed;

static int lbs_enable_monitor_mode(struct lbs_private *priv, int mode)
{
Expand Down Expand Up @@ -1450,7 +1450,7 @@ struct cmd_rssi {
__le16 nf;
__le16 avg_snr;
__le16 avg_nf;
} __attribute__ ((packed));
} __packed;

static int lbs_get_signal(struct lbs_private *priv, s8 *signal, s8 *noise)
{
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/libertas/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,20 +398,20 @@ struct mrvl_ie_domain_param_set {

u8 countrycode[COUNTRY_CODE_LEN];
struct ieee80211_country_ie_triplet triplet[1];
} __attribute__ ((packed));
} __packed;

struct cmd_ds_802_11d_domain_info {
__le16 action;
struct mrvl_ie_domain_param_set domain;
} __attribute__ ((packed));
} __packed;

struct lbs_802_11d_domain_reg {
/** Country code*/
u8 country_code[COUNTRY_CODE_LEN];
/** No. of triplet*/
u8 no_triplet;
struct ieee80211_country_ie_triplet triplet[MRVDRV_MAX_TRIPLET_802_11D];
} __attribute__ ((packed));
} __packed;

/*
* Define data structure for CMD_GET_HW_SPEC
Expand Down

0 comments on commit beabe91

Please sign in to comment.