diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/join.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/join.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c index 8ffb6a8d1036..08fa721580cb 100644 --- a/drivers/net/wireless/mwifiex/join.c +++ b/drivers/net/wireless/mwifiex/join.c | |||
@@ -970,16 +970,16 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, | |||
970 | cpu_to_le16(sizeof(struct ieee80211_ht_cap)); | 970 | cpu_to_le16(sizeof(struct ieee80211_ht_cap)); |
971 | ht_cap_info = le16_to_cpu(ht_cap->ht_cap.cap_info); | 971 | ht_cap_info = le16_to_cpu(ht_cap->ht_cap.cap_info); |
972 | 972 | ||
973 | SETHT_SHORTGI20(ht_cap_info); | 973 | ht_cap_info |= IEEE80211_HT_CAP_SGI_20; |
974 | if (adapter->chan_offset) { | 974 | if (adapter->chan_offset) { |
975 | SETHT_SHORTGI40(ht_cap_info); | 975 | ht_cap_info |= IEEE80211_HT_CAP_SGI_40; |
976 | SETHT_DSSSCCK40(ht_cap_info); | 976 | ht_cap_info |= IEEE80211_HT_CAP_DSSSCCK40; |
977 | SETHT_SUPPCHANWIDTH(ht_cap_info); | 977 | ht_cap_info |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; |
978 | SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask); | 978 | SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask); |
979 | } | 979 | } |
980 | 980 | ||
981 | ht_cap->ht_cap.ampdu_params_info | 981 | ht_cap->ht_cap.ampdu_params_info |
982 | = MAX_RX_AMPDU_SIZE_64K; | 982 | = IEEE80211_HT_MAX_AMPDU_64K; |
983 | ht_cap->ht_cap.mcs.rx_mask[0] = 0xff; | 983 | ht_cap->ht_cap.mcs.rx_mask[0] = 0xff; |
984 | pos += sizeof(struct mwifiex_ie_types_htcap); | 984 | pos += sizeof(struct mwifiex_ie_types_htcap); |
985 | cmd_append_size += | 985 | cmd_append_size += |
@@ -999,7 +999,8 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, | |||
999 | if (adapter->chan_offset) { | 999 | if (adapter->chan_offset) { |
1000 | ht_info->ht_info.ht_param = | 1000 | ht_info->ht_info.ht_param = |
1001 | adapter->chan_offset; | 1001 | adapter->chan_offset; |
1002 | SET_CHANWIDTH40(ht_info->ht_info.ht_param); | 1002 | ht_info->ht_info.ht_param |= |
1003 | IEEE80211_HT_PARAM_CHAN_WIDTH_ANY; | ||
1003 | } | 1004 | } |
1004 | ht_info->ht_info.operation_mode = | 1005 | ht_info->ht_info.operation_mode = |
1005 | cpu_to_le16(NON_GREENFIELD_STAS); | 1006 | cpu_to_le16(NON_GREENFIELD_STAS); |