Commit e1900bce authored by Ilan Peer's avatar Ilan Peer Committed by Luca Coelho

iwlwifi: mvm: Support SCAN_CFG_CMD version 5

Since the firmware support for internal station for auxiliary
activities, there is no need to configure an auxiliary station
as part of SCAN_CFG_CMD. Thus, this configuration was removed
from the corresponding structure.

Align the code accordingly.
Signed-off-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210210171218.9b8da8408692.I7fe99d73cd67ffc817c2ef6af4c9932ce9fc50b2@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent aacee681
...@@ -542,7 +542,8 @@ struct iwl_scan_config_v2 { ...@@ -542,7 +542,8 @@ struct iwl_scan_config_v2 {
* struct iwl_scan_config * struct iwl_scan_config
* @enable_cam_mode: whether to enable CAM mode. * @enable_cam_mode: whether to enable CAM mode.
* @enable_promiscouos_mode: whether to enable promiscouos mode * @enable_promiscouos_mode: whether to enable promiscouos mode
* @bcast_sta_id: the index of the station in the fw * @bcast_sta_id: the index of the station in the fw. Deprecated starting with
* API version 5.
* @reserved: reserved * @reserved: reserved
* @tx_chains: valid_tx antenna - ANT_* definitions * @tx_chains: valid_tx antenna - ANT_* definitions
* @rx_chains: valid_rx antenna - ANT_* definitions * @rx_chains: valid_rx antenna - ANT_* definitions
...@@ -554,7 +555,7 @@ struct iwl_scan_config { ...@@ -554,7 +555,7 @@ struct iwl_scan_config {
u8 reserved; u8 reserved;
__le32 tx_chains; __le32 tx_chains;
__le32 rx_chains; __le32 rx_chains;
} __packed; /* SCAN_CONFIG_DB_CMD_API_S_3 */ } __packed; /* SCAN_CONFIG_DB_CMD_API_S_5 */
/** /**
* enum iwl_umac_scan_flags - UMAC scan flags * enum iwl_umac_scan_flags - UMAC scan flags
......
...@@ -1253,14 +1253,16 @@ int iwl_mvm_config_scan(struct iwl_mvm *mvm) ...@@ -1253,14 +1253,16 @@ int iwl_mvm_config_scan(struct iwl_mvm *mvm)
memset(&cfg, 0, sizeof(cfg)); memset(&cfg, 0, sizeof(cfg));
if (iwl_fw_lookup_cmd_ver(mvm->fw, LONG_GROUP, if (iwl_fw_lookup_cmd_ver(mvm->fw, LONG_GROUP,
ADD_STA, 0) < 12) ADD_STA, 0) < 12) {
cfg.bcast_sta_id = mvm->aux_sta.sta_id; cfg.bcast_sta_id = mvm->aux_sta.sta_id;
/* } else if (iwl_fw_lookup_cmd_ver(mvm->fw, LONG_GROUP,
* Fw doesn't use this sta anymore, pending deprecation via HOST API SCAN_CFG_CMD, 0) < 5) {
* change. /*
*/ * Fw doesn't use this sta anymore. Deprecated on SCAN_CFG_CMD
else * version 5.
*/
cfg.bcast_sta_id = 0xff; cfg.bcast_sta_id = 0xff;
}
cfg.tx_chains = cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm)); cfg.tx_chains = cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm));
cfg.rx_chains = cpu_to_le32(iwl_mvm_scan_rx_ant(mvm)); cfg.rx_chains = cpu_to_le32(iwl_mvm_scan_rx_ant(mvm));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment