qcacld-3.0: Remove WMA_LRO_CONFIG_CMD

The logic that invoked wma_lro_init() was removed by the patch:
  qcacld-3.0: Code cleanup from HDD module
  Change-Id If5f1cf432b5c02848202debee7de696b2f20be9a

Since this function is no longer used, remove it.

That removes the logic which used to send the WMA_LRO_CONFIG_CMD
command.  Since that command is no longer used, also remove the
command handler, wma_lro_config_cmd(), along with the command
definition itself.

Change-Id: I1416d8c635a908d33cc41046ffd0ff63837dae99
CRs-Fixed: 3424790
Tento commit je obsažen v:
Jeff Johnson
2023-03-04 12:26:36 -08:00
odevzdal Madan Koyyalamudi
rodič e096f93ac1
revize 93614c8de6
7 změnil soubory, kde provedl 2 přidání a 86 odebrání

Zobrazit soubor

@@ -546,7 +546,8 @@ enum halmsgtype {
SIR_HAL_SET_RSSI_MONITOR_REQ = (SIR_HAL_ITC_MSG_TYPES_BEGIN + 333),
SIR_HAL_SET_IE_INFO = (SIR_HAL_ITC_MSG_TYPES_BEGIN + 334),
SIR_HAL_LRO_CONFIG_CMD = (SIR_HAL_ITC_MSG_TYPES_BEGIN + 335),
/* SIR_HAL_ITC_MSG_TYPES_BEGIN + 335 is unused */
/* SIR_HAL_ITC_MSG_TYPES_BEGIN + 336 is unused */
SIR_HAL_HT40_OBSS_SCAN_IND = (SIR_HAL_ITC_MSG_TYPES_BEGIN + 337),

Zobrazit soubor

@@ -455,7 +455,6 @@ uint8_t *mac_trace_get_wma_msg_string(uint16_t wma_msg)
CASE_RETURN_STRING(WMA_DCC_CLEAR_STATS_CMD);
CASE_RETURN_STRING(WMA_DCC_UPDATE_NDL_CMD);
CASE_RETURN_STRING(WMA_SET_IE_INFO);
CASE_RETURN_STRING(WMA_LRO_CONFIG_CMD);
CASE_RETURN_STRING(WMA_GW_PARAM_UPDATE_REQ);
CASE_RETURN_STRING(WMA_ADD_BCN_FILTER_CMDID);
CASE_RETURN_STRING(WMA_REMOVE_BCN_FILTER_CMDID);

Zobrazit soubor

@@ -1514,9 +1514,6 @@ QDF_STATUS wma_set_gateway_params(tp_wma_handle wma,
}
#endif /* FEATURE_LFR_SUBNET_DETECTION */
QDF_STATUS wma_lro_config_cmd(void *handle,
struct cdp_lro_hash_config *wma_lro_cmd);
QDF_STATUS wma_ht40_stop_obss_scan(tp_wma_handle wma_handle,
int32_t vdev_id);

Zobrazit soubor

@@ -252,16 +252,6 @@ static inline int wma_unified_radio_tx_mem_free(void *handle)
QDF_STATUS wma_form_unit_test_cmd_and_send(uint32_t vdev_id,
uint32_t module_id, uint32_t arg_count, uint32_t *arg);
/**
* wma_lro_init() - sends LRO configuration to FW
* @lro_config: pointer to the config parameters
*
* This function ends LRO configuration to FW.
*
* Return: 0 for success or reasons for failure
*/
int wma_lro_init(struct cdp_lro_hash_config *lro_config);
QDF_STATUS wma_remove_beacon_filter(WMA_HANDLE wma,
struct beacon_filter_param *filter_params);

Zobrazit soubor

@@ -383,7 +383,6 @@ enum wmamsgtype {
WMA_DCC_UPDATE_NDL_CMD = SIR_HAL_DCC_UPDATE_NDL_CMD,
WMA_SET_IE_INFO = SIR_HAL_SET_IE_INFO,
WMA_LRO_CONFIG_CMD = SIR_HAL_LRO_CONFIG_CMD,
WMA_GW_PARAM_UPDATE_REQ = SIR_HAL_GATEWAY_PARAM_UPDATE_REQ,
WMA_ADD_BCN_FILTER_CMDID = SIR_HAL_ADD_BCN_FILTER_CMDID,
WMA_REMOVE_BCN_FILTER_CMDID = SIR_HAL_REMOVE_BCN_FILTER_CMDID,

Zobrazit soubor

@@ -3079,42 +3079,6 @@ void wma_tx_abort(uint8_t vdev_id)
&param);
}
/**
* wma_lro_config_cmd() - process the LRO config command
* @wma: Pointer to WMA handle
* @wma_lro_cmd: Pointer to LRO configuration parameters
*
* This function sends down the LRO configuration parameters to
* the firmware to enable LRO, sets the TCP flags and sets the
* seed values for the toeplitz hash generation
*
* Return: QDF_STATUS_SUCCESS for success otherwise failure
*/
QDF_STATUS wma_lro_config_cmd(void *handle,
struct cdp_lro_hash_config *wma_lro_cmd)
{
struct wmi_lro_config_cmd_t wmi_lro_cmd = {0};
tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA);
if (!wma || !wma_lro_cmd) {
wma_err("Invalid input!");
return QDF_STATUS_E_FAILURE;
}
wmi_lro_cmd.lro_enable = wma_lro_cmd->lro_enable;
wmi_lro_cmd.tcp_flag = wma_lro_cmd->tcp_flag;
wmi_lro_cmd.tcp_flag_mask = wma_lro_cmd->tcp_flag_mask;
qdf_mem_copy(wmi_lro_cmd.toeplitz_hash_ipv4,
wma_lro_cmd->toeplitz_hash_ipv4,
LRO_IPV4_SEED_ARR_SZ * sizeof(uint32_t));
qdf_mem_copy(wmi_lro_cmd.toeplitz_hash_ipv6,
wma_lro_cmd->toeplitz_hash_ipv6,
LRO_IPV6_SEED_ARR_SZ * sizeof(uint32_t));
return wmi_unified_lro_config_cmd(wma->wmi_handle,
&wmi_lro_cmd);
}
void wma_delete_invalid_peer_entries(uint8_t vdev_id, uint8_t *peer_mac_addr)
{
tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA);

Zobrazit soubor

@@ -9342,11 +9342,6 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg)
(struct sir_antenna_mode_param *)msg->bodyptr);
qdf_mem_free(msg->bodyptr);
break;
case WMA_LRO_CONFIG_CMD:
wma_lro_config_cmd(wma_handle,
(struct cdp_lro_hash_config *)msg->bodyptr);
qdf_mem_free(msg->bodyptr);
break;
case WMA_GW_PARAM_UPDATE_REQ:
wma_set_gateway_params(wma_handle, msg->bodyptr);
qdf_mem_free(msg->bodyptr);
@@ -9982,35 +9977,6 @@ QDF_STATUS wma_crash_inject(WMA_HANDLE wma_handle, uint32_t type,
return wmi_crash_inject(wma->wmi_handle, &param);
}
#ifdef RECEIVE_OFFLOAD
int wma_lro_init(struct cdp_lro_hash_config *lro_config)
{
struct scheduler_msg msg = {0};
struct cdp_lro_hash_config *iwcmd;
iwcmd = qdf_mem_malloc(sizeof(*iwcmd));
if (!iwcmd)
return -ENOMEM;
*iwcmd = *lro_config;
msg.type = WMA_LRO_CONFIG_CMD;
msg.reserved = 0;
msg.bodyptr = iwcmd;
if (QDF_STATUS_SUCCESS !=
scheduler_post_message(QDF_MODULE_ID_WMA,
QDF_MODULE_ID_WMA,
QDF_MODULE_ID_WMA, &msg)) {
qdf_mem_free(iwcmd);
return -EAGAIN;
}
wma_debug("sending the LRO configuration to the fw");
return 0;
}
#endif
QDF_STATUS wma_configure_smps_params(uint32_t vdev_id, uint32_t param_id,
uint32_t param_val)
{