diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-07-22 12:49:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-22 12:49:22 -0400 |
commit | 0eeb315b20774296f977cecf0010794cd690c594 (patch) | |
tree | 46571db4141e7faa1636b4792c0704ae25799989 | |
parent | 7fc942722209208241b7e676e80b5e8a3efd2960 (diff) | |
parent | 4601879419f94a89fcbf427b4d3bfbf4ce294174 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac80211.c | 7 |
2 files changed, 13 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c index 725ba49576bf..8b79081d4885 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | |||
@@ -1072,8 +1072,12 @@ static int iwl_mvm_mac_ctxt_cmd_ap(struct iwl_mvm *mvm, | |||
1072 | /* Fill the common data for all mac context types */ | 1072 | /* Fill the common data for all mac context types */ |
1073 | iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, action); | 1073 | iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, action); |
1074 | 1074 | ||
1075 | /* Also enable probe requests to pass */ | 1075 | /* |
1076 | cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); | 1076 | * pass probe requests and beacons from other APs (needed |
1077 | * for ht protection) | ||
1078 | */ | ||
1079 | cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST | | ||
1080 | MAC_FILTER_IN_BEACON); | ||
1077 | 1081 | ||
1078 | /* Fill the data specific for ap mode */ | 1082 | /* Fill the data specific for ap mode */ |
1079 | iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd.ap, | 1083 | iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd.ap, |
@@ -1094,6 +1098,13 @@ static int iwl_mvm_mac_ctxt_cmd_go(struct iwl_mvm *mvm, | |||
1094 | /* Fill the common data for all mac context types */ | 1098 | /* Fill the common data for all mac context types */ |
1095 | iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, action); | 1099 | iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, action); |
1096 | 1100 | ||
1101 | /* | ||
1102 | * pass probe requests and beacons from other APs (needed | ||
1103 | * for ht protection) | ||
1104 | */ | ||
1105 | cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST | | ||
1106 | MAC_FILTER_IN_BEACON); | ||
1107 | |||
1097 | /* Fill the data specific for GO mode */ | 1108 | /* Fill the data specific for GO mode */ |
1098 | iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd.go.ap, | 1109 | iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd.go.ap, |
1099 | action == FW_CTXT_ACTION_ADD); | 1110 | action == FW_CTXT_ACTION_ADD); |
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c index 9bfb90680cdc..98556d03c1ed 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |||
@@ -303,13 +303,6 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) | |||
303 | hw->uapsd_max_sp_len = IWL_UAPSD_MAX_SP; | 303 | hw->uapsd_max_sp_len = IWL_UAPSD_MAX_SP; |
304 | } | 304 | } |
305 | 305 | ||
306 | if (mvm->fw->ucode_capa.flags & IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT && | ||
307 | !iwlwifi_mod_params.uapsd_disable) { | ||
308 | hw->flags |= IEEE80211_HW_SUPPORTS_UAPSD; | ||
309 | hw->uapsd_queues = IWL_UAPSD_AC_INFO; | ||
310 | hw->uapsd_max_sp_len = IWL_UAPSD_MAX_SP; | ||
311 | } | ||
312 | |||
313 | hw->sta_data_size = sizeof(struct iwl_mvm_sta); | 306 | hw->sta_data_size = sizeof(struct iwl_mvm_sta); |
314 | hw->vif_data_size = sizeof(struct iwl_mvm_vif); | 307 | hw->vif_data_size = sizeof(struct iwl_mvm_vif); |
315 | hw->chanctx_data_size = sizeof(u16); | 308 | hw->chanctx_data_size = sizeof(u16); |