qcacld-3.0: Remove unused curr_device_mode variable/Function

Currently in the global sme context a device mode is getting set
which is unused, removed curr_device_mode and its corresponding
set function.

Change-Id: I479107b2bbb940171d41f2620165ccbb7f0b7fff
CRs-Fixed: 3294818
This commit is contained in:
Arun Kumar Khandavalli
2022-09-19 20:35:05 +05:30
gecommit door Madan Koyyalamudi
bovenliggende d2a6ccf8c7
commit ab5801f734
6 gewijzigde bestanden met toevoegingen van 0 en 21 verwijderingen

Bestand weergeven

@@ -4048,7 +4048,6 @@ QDF_STATUS hdd_init_ap_mode(struct hdd_adapter *adapter, bool reinit)
ap_pwr_type = wlan_reg_decide_6g_ap_pwr_type(hdd_ctx->pdev);
hdd_debug("selecting AP power type %d", ap_pwr_type);
sme_set_curr_device_mode(hdd_ctx->mac_handle, adapter->device_mode);
/* Zero the memory. This zeros the profile structure. */
memset(phostapdBuf, 0, sizeof(struct hdd_hostapd_state));

Bestand weergeven

@@ -6385,7 +6385,6 @@ QDF_STATUS hdd_init_station_mode(struct hdd_adapter *adapter)
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
mac_handle = hdd_ctx->mac_handle;
sme_set_curr_device_mode(mac_handle, adapter->device_mode);
status = ucfg_mlme_get_vht_enable2x2(hdd_ctx->psoc, &bval);
if (!QDF_IS_STATUS_SUCCESS(status))
hdd_err("unable to get vht_enable2x2");

Bestand weergeven

@@ -620,8 +620,6 @@ int hdd_init_nan_data_mode(struct hdd_adapter *adapter)
mac_handle = hdd_ctx->mac_handle;
/* Configure self HT/VHT capabilities */
sme_set_curr_device_mode(mac_handle, adapter->device_mode);
status = ucfg_mlme_get_vht_enable2x2(hdd_ctx->psoc, &bval);
if (!QDF_IS_STATUS_SUCCESS(status))
hdd_err("unable to get vht_enable2x2");

Bestand weergeven

@@ -443,13 +443,6 @@ QDF_STATUS sme_vdev_delete(mac_handle_t mac_handle,
*/
void sme_cleanup_session(mac_handle_t mac_handle, uint8_t vdev_id);
/**
* sme_set_curr_device_mode() - Sets the current operating device mode.
* @mac_handle: The handle returned by mac_open.
* @curr_device_mode: Current operating device mode.
*/
void sme_set_curr_device_mode(mac_handle_t mac_handle,
enum QDF_OPMODE curr_device_mode);
/**
* sme_update_roam_params() - Store/Update the roaming params
* @mac_handle: Opaque handle to the global MAC context

Bestand weergeven

@@ -393,7 +393,6 @@ struct sme_context {
/* following pointer contains array of pointers for tSmeCmd* */
void **sme_cmd_buf_addr;
tDblLinkList sme_cmd_freelist; /* preallocated roam cmd list */
enum QDF_OPMODE curr_device_mode;
void *ll_stats_context;
link_layer_stats_cb link_layer_stats_cb;
void (*link_layer_stats_ext_cb)(hdd_handle_t callback_ctx,

Bestand weergeven

@@ -807,7 +807,6 @@ QDF_STATUS sme_open(mac_handle_t mac_handle)
struct mac_context *mac = MAC_CONTEXT(mac_handle);
mac->sme.state = SME_STATE_STOP;
mac->sme.curr_device_mode = QDF_STA_MODE;
if (!QDF_IS_STATUS_SUCCESS(qdf_mutex_create(
&mac->sme.sme_global_lock))) {
sme_err("Init lock failed");
@@ -7363,14 +7362,6 @@ ePhyChanBondState sme_get_cb_phy_state_from_cb_ini_value(uint32_t cb_ini_value)
return csr_convert_cb_ini_value_to_phy_cb_state(cb_ini_value);
}
void sme_set_curr_device_mode(mac_handle_t mac_handle,
enum QDF_OPMODE curr_device_mode)
{
struct mac_context *mac = MAC_CONTEXT(mac_handle);
mac->sme.curr_device_mode = curr_device_mode;
}
/**
* sme_add_periodic_tx_ptrn() - Add Periodic TX Pattern
* @mac_handle: Opaque handle to the global MAC context