iwlwifi: scan: remove support for fw scan api v11
authorTova Mussai <tova.mussai@intel.com>
Thu, 3 Oct 2019 17:17:07 +0000 (20:17 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Dec 2019 12:23:24 +0000 (14:23 +0200)
The fw already support scan api v12,
v11 is not needed anymore.

Signed-off-by: Tova Mussai <tova.mussai@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
drivers/net/wireless/intel/iwlwifi/mvm/scan.c

index 408798f..1b2b5fa 100644 (file)
@@ -922,21 +922,6 @@ struct iwl_scan_probe_params_v4 {
 #define SCAN_MAX_NUM_CHANS_V3 67
 
 /**
- * struct iwl_scan_channel_params_v3
- * @flags: channel flags &enum iwl_scan_channel_flags
- * @count: num of channels in scan request
- * @reserved: for future use and alignment
- * @channel_config: array of explicit channel configurations
- *                  for 2.4Ghz and 5.2Ghz bands
- */
-struct iwl_scan_channel_params_v3 {
-       u8 flags;
-       u8 count;
-       __le16 reserved;
-       struct iwl_scan_channel_cfg_umac channel_config[SCAN_MAX_NUM_CHANS_V3];
-} __packed; /* SCAN_CHANNEL_PARAMS_API_S_VER_3 */
-
-/**
  * struct iwl_scan_channel_params_v4
  * @flags: channel flags &enum iwl_scan_channel_flags
  * @count: num of channels in scan request
@@ -1011,20 +996,6 @@ struct iwl_scan_periodic_parms_v1 {
 } __packed; /* SCAN_PERIODIC_PARAMS_API_S_VER_1 */
 
 /**
- * struct iwl_scan_req_params_v11
- * @general_params: &struct iwl_scan_general_params_v10
- * @channel_params: &struct iwl_scan_channel_params_v3
- * @periodic_params: &struct iwl_scan_periodic_parms_v1
- * @probe_params: &struct iwl_scan_probe_params_v3
- */
-struct iwl_scan_req_params_v11 {
-       struct iwl_scan_general_params_v10 general_params;
-       struct iwl_scan_channel_params_v3 channel_params;
-       struct iwl_scan_periodic_parms_v1 periodic_params;
-       struct iwl_scan_probe_params_v3 probe_params;
-} __packed; /* SCAN_REQUEST_PARAMS_API_S_VER_11 */
-
-/**
  * struct iwl_scan_req_params_v12
  * @general_params: &struct iwl_scan_general_params_v10
  * @channel_params: &struct iwl_scan_channel_params_v4
@@ -1053,18 +1024,6 @@ struct iwl_scan_req_params_v13 {
 } __packed; /* SCAN_REQUEST_PARAMS_API_S_VER_13 */
 
 /**
- * struct iwl_scan_req_umac_v11
- * @uid: scan id, &enum iwl_umac_scan_uid_offsets
- * @ooc_priority: out of channel priority - &enum iwl_scan_priority
- * @scan_params: scan parameters
- */
-struct iwl_scan_req_umac_v11 {
-       __le32 uid;
-       __le32 ooc_priority;
-       struct iwl_scan_req_params_v11 scan_params;
-} __packed; /* SCAN_REQUEST_CMD_UMAC_API_S_VER_11 */
-
-/**
  * struct iwl_scan_req_umac_v12
  * @uid: scan id, &enum iwl_umac_scan_uid_offsets
  * @ooc_priority: out of channel priority - &enum iwl_scan_priority
index a046ac9..c0c89d4 100644 (file)
@@ -1907,20 +1907,6 @@ iwl_mvm_scan_umac_fill_probe_p_v4(struct iwl_mvm_scan_params *params,
 }
 
 static void
-iwl_mvm_scan_umac_fill_ch_p_v3(struct iwl_mvm *mvm,
-                              struct iwl_mvm_scan_params *params,
-                              struct ieee80211_vif *vif,
-                              struct iwl_scan_channel_params_v3 *cp)
-{
-       cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif);
-       cp->count = params->n_channels;
-
-       iwl_mvm_umac_scan_cfg_channels(mvm, params->channels,
-                                      params->n_channels, 0,
-                                      cp->channel_config);
-}
-
-static void
 iwl_mvm_scan_umac_fill_ch_p_v4(struct iwl_mvm *mvm,
                               struct iwl_mvm_scan_params *params,
                               struct ieee80211_vif *vif,
@@ -1937,37 +1923,6 @@ iwl_mvm_scan_umac_fill_ch_p_v4(struct iwl_mvm *mvm,
                                          vif->type);
 }
 
-static int iwl_mvm_scan_umac_v11(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
-                                struct iwl_mvm_scan_params *params, int type,
-                                int uid)
-{
-       struct iwl_scan_req_umac_v11 *cmd = mvm->scan_cmd;
-       struct iwl_scan_req_params_v11 *scan_p = &cmd->scan_params;
-       int ret;
-       u16 gen_flags;
-
-       mvm->scan_uid_status[uid] = type;
-
-       cmd->ooc_priority = cpu_to_le32(iwl_mvm_scan_umac_ooc_priority(params));
-       cmd->uid = cpu_to_le32(uid);
-
-       gen_flags = iwl_mvm_scan_umac_flags_v2(mvm, params, vif, type);
-       iwl_mvm_scan_umac_fill_general_p_v10(mvm, params, vif,
-                                            &scan_p->general_params,
-                                            gen_flags);
-
-        ret = iwl_mvm_fill_scan_sched_params(params,
-                                             scan_p->periodic_params.schedule,
-                                             &scan_p->periodic_params.delay);
-       if (ret)
-               return ret;
-
-       iwl_mvm_scan_umac_fill_probe_p_v3(params, &scan_p->probe_params);
-       iwl_mvm_scan_umac_fill_ch_p_v3(mvm, params, vif,
-                                      &scan_p->channel_params);
-
-       return 0;
-}
 
 static int iwl_mvm_scan_umac_v12(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
                                 struct iwl_mvm_scan_params *params, int type,
@@ -2152,7 +2107,6 @@ static const struct iwl_scan_umac_handler iwl_scan_umac_handlers[] = {
        /* set the newest version first to shorten the list traverse time */
        IWL_SCAN_UMAC_HANDLER(13),
        IWL_SCAN_UMAC_HANDLER(12),
-       IWL_SCAN_UMAC_HANDLER(11),
 };
 
 static int iwl_mvm_build_scan_cmd(struct iwl_mvm *mvm,
@@ -2511,7 +2465,6 @@ static int iwl_scan_req_umac_get_size(u8 scan_ver)
        switch (scan_ver) {
                IWL_SCAN_REQ_UMAC_HANDLE_SIZE(13);
                IWL_SCAN_REQ_UMAC_HANDLE_SIZE(12);
-               IWL_SCAN_REQ_UMAC_HANDLE_SIZE(11);
        }
 
        return 0;