aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-11-25 00:53:57 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-11-25 00:53:57 -0500
commite7331845df48cd7905d0ac4452a9244446583e41 (patch)
tree92a4d61292c467674b3202bb978bc249044e47a6 /drivers/net
parentdcad8e4299bf81f8795b44677036dfa490c9fb15 (diff)
parent5ac6c72e594471acfa5b00210c51d533a73413ad (diff)
Merge remote-tracking branch 'iwlwifi-fixes/master' into iwlwifi-next
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Conflicts: drivers/net/wireless/iwlwifi/iwl-fw.h
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-fw.h2
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac80211.c12
2 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-fw.h b/drivers/net/wireless/iwlwifi/iwl-fw.h
index a94d244459d7..959a25a75f9d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-fw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-fw.h
@@ -158,6 +158,7 @@ enum iwl_ucode_tlv_api {
158 * @IWL_UCODE_TLV_CAPA_DQA_SUPPORT: supports dynamic queue allocation (DQA), 158 * @IWL_UCODE_TLV_CAPA_DQA_SUPPORT: supports dynamic queue allocation (DQA),
159 * which also implies support for the scheduler configuration command 159 * which also implies support for the scheduler configuration command
160 * @IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH: supports TDLS channel switching 160 * @IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH: supports TDLS channel switching
161 * @IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT: supports Hot Spot Command
161 */ 162 */
162enum iwl_ucode_tlv_capa { 163enum iwl_ucode_tlv_capa {
163 IWL_UCODE_TLV_CAPA_D0I3_SUPPORT = BIT(0), 164 IWL_UCODE_TLV_CAPA_D0I3_SUPPORT = BIT(0),
@@ -169,6 +170,7 @@ enum iwl_ucode_tlv_capa {
169 IWL_UCODE_TLV_CAPA_QUIET_PERIOD_SUPPORT = BIT(11), 170 IWL_UCODE_TLV_CAPA_QUIET_PERIOD_SUPPORT = BIT(11),
170 IWL_UCODE_TLV_CAPA_DQA_SUPPORT = BIT(12), 171 IWL_UCODE_TLV_CAPA_DQA_SUPPORT = BIT(12),
171 IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH = BIT(13), 172 IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH = BIT(13),
173 IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT = BIT(18),
172}; 174};
173 175
174/* The default calibrate table size if not specified by firmware file */ 176/* The default calibrate table size if not specified by firmware file */
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index 322d01b90c0e..f876d866b8ab 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -2577,9 +2577,15 @@ static int iwl_mvm_roc(struct ieee80211_hw *hw,
2577 2577
2578 switch (vif->type) { 2578 switch (vif->type) {
2579 case NL80211_IFTYPE_STATION: 2579 case NL80211_IFTYPE_STATION:
2580 /* Use aux roc framework (HS20) */ 2580 if (mvm->fw->ucode_capa.capa[0] &
2581 ret = iwl_mvm_send_aux_roc_cmd(mvm, channel, 2581 IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT) {
2582 vif, duration); 2582 /* Use aux roc framework (HS20) */
2583 ret = iwl_mvm_send_aux_roc_cmd(mvm, channel,
2584 vif, duration);
2585 goto out_unlock;
2586 }
2587 IWL_ERR(mvm, "hotspot not supported\n");
2588 ret = -EINVAL;
2583 goto out_unlock; 2589 goto out_unlock;
2584 case NL80211_IFTYPE_P2P_DEVICE: 2590 case NL80211_IFTYPE_P2P_DEVICE:
2585 /* handle below */ 2591 /* handle below */