diff options
author | David Spinadel <david.spinadel@intel.com> | 2014-05-20 05:46:37 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-11-23 13:02:43 -0500 |
commit | d24962214dd5930aa713213654721fe1fd7ed844 (patch) | |
tree | cd5fd7f8ddcd49aac5f5ee1cfcf487a4efe0c0e7 /drivers/net/wireless/iwlwifi/mvm/debugfs.c | |
parent | 5387b348b7af299c2aa8e0318498fa7d889da4fd (diff) |
iwlwifi: mvm: implement UMAC scan API
This API uses second CPU scan commands, and can support multiple
simultaneous scans.
Adding the new API, and adding new mechanisms to deal with up to
8 simultaneous scans instead of the old scan status.
New scan API requires scan configuration for default scan parameters,
adding it in _up flow. Also updating scan configuration after updating
valid scan antennas via debugfs.
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/debugfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c index 51b7116965ed..8212b00096f9 100644 --- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c | |||
@@ -936,7 +936,11 @@ iwl_dbgfs_scan_ant_rxchain_write(struct iwl_mvm *mvm, char *buf, | |||
936 | if (scan_rx_ant & ~mvm->fw->valid_rx_ant) | 936 | if (scan_rx_ant & ~mvm->fw->valid_rx_ant) |
937 | return -EINVAL; | 937 | return -EINVAL; |
938 | 938 | ||
939 | mvm->scan_rx_ant = scan_rx_ant; | 939 | if (mvm->scan_rx_ant != scan_rx_ant) { |
940 | mvm->scan_rx_ant = scan_rx_ant; | ||
941 | if (mvm->fw->ucode_capa.capa[0] & IWL_UCODE_TLV_CAPA_UMAC_SCAN) | ||
942 | iwl_mvm_config_scan(mvm); | ||
943 | } | ||
940 | 944 | ||
941 | return count; | 945 | return count; |
942 | } | 946 | } |