Commit 6b21a69f authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville

mwifiex: remove duplicate structure host_cmd_tlv

We already have 'struct mwifiex_ie_types_header' with same
definition. Hence host_cmd_tlv is removed in this patch.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bedb361b
...@@ -1366,11 +1366,6 @@ struct host_cmd_ds_802_11_eeprom_access { ...@@ -1366,11 +1366,6 @@ struct host_cmd_ds_802_11_eeprom_access {
u8 value; u8 value;
} __packed; } __packed;
struct host_cmd_tlv {
__le16 type;
__le16 len;
} __packed;
struct mwifiex_assoc_event { struct mwifiex_assoc_event {
u8 sta_addr[ETH_ALEN]; u8 sta_addr[ETH_ALEN];
__le16 type; __le16 type;
...@@ -1396,99 +1391,99 @@ struct host_cmd_11ac_vht_cfg { ...@@ -1396,99 +1391,99 @@ struct host_cmd_11ac_vht_cfg {
} __packed; } __packed;
struct host_cmd_tlv_akmp { struct host_cmd_tlv_akmp {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 key_mgmt; __le16 key_mgmt;
__le16 key_mgmt_operation; __le16 key_mgmt_operation;
} __packed; } __packed;
struct host_cmd_tlv_pwk_cipher { struct host_cmd_tlv_pwk_cipher {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 proto; __le16 proto;
u8 cipher; u8 cipher;
u8 reserved; u8 reserved;
} __packed; } __packed;
struct host_cmd_tlv_gwk_cipher { struct host_cmd_tlv_gwk_cipher {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 cipher; u8 cipher;
u8 reserved; u8 reserved;
} __packed; } __packed;
struct host_cmd_tlv_passphrase { struct host_cmd_tlv_passphrase {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 passphrase[0]; u8 passphrase[0];
} __packed; } __packed;
struct host_cmd_tlv_wep_key { struct host_cmd_tlv_wep_key {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 key_index; u8 key_index;
u8 is_default; u8 is_default;
u8 key[1]; u8 key[1];
}; };
struct host_cmd_tlv_auth_type { struct host_cmd_tlv_auth_type {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 auth_type; u8 auth_type;
} __packed; } __packed;
struct host_cmd_tlv_encrypt_protocol { struct host_cmd_tlv_encrypt_protocol {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 proto; __le16 proto;
} __packed; } __packed;
struct host_cmd_tlv_ssid { struct host_cmd_tlv_ssid {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 ssid[0]; u8 ssid[0];
} __packed; } __packed;
struct host_cmd_tlv_rates { struct host_cmd_tlv_rates {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 rates[0]; u8 rates[0];
} __packed; } __packed;
struct host_cmd_tlv_bcast_ssid { struct host_cmd_tlv_bcast_ssid {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 bcast_ctl; u8 bcast_ctl;
} __packed; } __packed;
struct host_cmd_tlv_beacon_period { struct host_cmd_tlv_beacon_period {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 period; __le16 period;
} __packed; } __packed;
struct host_cmd_tlv_dtim_period { struct host_cmd_tlv_dtim_period {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 period; u8 period;
} __packed; } __packed;
struct host_cmd_tlv_frag_threshold { struct host_cmd_tlv_frag_threshold {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 frag_thr; __le16 frag_thr;
} __packed; } __packed;
struct host_cmd_tlv_rts_threshold { struct host_cmd_tlv_rts_threshold {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le16 rts_thr; __le16 rts_thr;
} __packed; } __packed;
struct host_cmd_tlv_retry_limit { struct host_cmd_tlv_retry_limit {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 limit; u8 limit;
} __packed; } __packed;
struct host_cmd_tlv_mac_addr { struct host_cmd_tlv_mac_addr {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 mac_addr[ETH_ALEN]; u8 mac_addr[ETH_ALEN];
} __packed; } __packed;
struct host_cmd_tlv_channel_band { struct host_cmd_tlv_channel_band {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
u8 band_config; u8 band_config;
u8 channel; u8 channel;
} __packed; } __packed;
struct host_cmd_tlv_ageout_timer { struct host_cmd_tlv_ageout_timer {
struct host_cmd_tlv tlv; struct mwifiex_ie_types_header header;
__le32 sta_ao_timer; __le32 sta_ao_timer;
} __packed; } __packed;
......
...@@ -87,7 +87,7 @@ mwifiex_update_autoindex_ies(struct mwifiex_private *priv, ...@@ -87,7 +87,7 @@ mwifiex_update_autoindex_ies(struct mwifiex_private *priv,
u8 *tmp; u8 *tmp;
input_len = le16_to_cpu(ie_list->len); input_len = le16_to_cpu(ie_list->len);
travel_len = sizeof(struct host_cmd_tlv); travel_len = sizeof(struct mwifiex_ie_types_header);
ie_list->len = 0; ie_list->len = 0;
......
...@@ -707,8 +707,9 @@ mwifiex_cmd_802_11_key_material(struct mwifiex_private *priv, ...@@ -707,8 +707,9 @@ mwifiex_cmd_802_11_key_material(struct mwifiex_private *priv,
if (priv->bss_type == MWIFIEX_BSS_TYPE_UAP) { if (priv->bss_type == MWIFIEX_BSS_TYPE_UAP) {
tlv_mac = (void *)((u8 *)&key_material->key_param_set + tlv_mac = (void *)((u8 *)&key_material->key_param_set +
key_param_len); key_param_len);
tlv_mac->tlv.type = cpu_to_le16(TLV_TYPE_STA_MAC_ADDR); tlv_mac->header.type =
tlv_mac->tlv.len = cpu_to_le16(ETH_ALEN); cpu_to_le16(TLV_TYPE_STA_MAC_ADDR);
tlv_mac->header.len = cpu_to_le16(ETH_ALEN);
memcpy(tlv_mac->mac_addr, enc_key->mac_addr, ETH_ALEN); memcpy(tlv_mac->mac_addr, enc_key->mac_addr, ETH_ALEN);
cmd_size = key_param_len + S_DS_GEN + cmd_size = key_param_len + S_DS_GEN +
sizeof(key_material->action) + sizeof(key_material->action) +
......
This diff is collapsed.
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