|
@@ -308,8 +308,7 @@ mwifiex_cmd_append_11n_tlv(struct mwifiex_private *priv,
|
|
ht_cap->header.len =
|
|
ht_cap->header.len =
|
|
cpu_to_le16(sizeof(struct ieee80211_ht_cap));
|
|
cpu_to_le16(sizeof(struct ieee80211_ht_cap));
|
|
memcpy((u8 *) ht_cap + sizeof(struct mwifiex_ie_types_header),
|
|
memcpy((u8 *) ht_cap + sizeof(struct mwifiex_ie_types_header),
|
|
- (u8 *) bss_desc->bcn_ht_cap +
|
|
|
|
- sizeof(struct ieee_types_header),
|
|
|
|
|
|
+ (u8 *)bss_desc->bcn_ht_cap,
|
|
le16_to_cpu(ht_cap->header.len));
|
|
le16_to_cpu(ht_cap->header.len));
|
|
|
|
|
|
mwifiex_fill_cap_info(priv, radio_type, ht_cap);
|
|
mwifiex_fill_cap_info(priv, radio_type, ht_cap);
|