qcacld-3.0: Remove unused variable from hdd_ctx structure

Remove set_antenna_mode_cmpl variable from hdd_ctx structure
as it is not using anywhere.

Change-Id: Ifc3395f944b10da9537815a94c5484312190141a
CRs-Fixed: 2289642
This commit is contained in:
Dundi Raviteja 2018-08-02 12:16:25 +05:30 • committed by nshrivas
commit 4016e93fdd
3 changed files with 28 additions and 33 deletions

View file

@ -1885,8 +1885,6 @@ struct hdd_context {
uint32_t rx_high_ind_cnt;
/* For Rx thread non GRO/LRO packet accounting */
uint64_t no_rx_offload_pkt_cnt;
/* completion variable to indicate set antenna mode complete*/
struct completion set_antenna_mode_cmpl;
/* Current number of TX X RX chains being used */
enum antenna_mode current_antenna_mode;
@ -2551,9 +2549,6 @@ wlan_hdd_check_custom_con_channel_rules(struct hdd_adapter *sta_adapter,
void wlan_hdd_stop_sap(struct hdd_adapter *ap_adapter);
void wlan_hdd_start_sap(struct hdd_adapter *ap_adapter, bool reinit);
void wlan_hdd_soc_set_antenna_mode_cb(enum set_antenna_mode_status status,
void *context);
#ifdef QCA_CONFIG_SMP
int wlan_hdd_get_cpu(void);
#else

View file

@ -6565,6 +6565,34 @@ QDF_STATUS hdd_update_smps_antenna_mode(struct hdd_context *hdd_ctx, int mode)
return QDF_STATUS_SUCCESS;
}
/**
* wlan_hdd_soc_set_antenna_mode_cb() - Callback for set antenna mode
* @status: Status of set antenna mode
* @context: callback context
*
* Callback on setting antenna mode
*
* Return: None
*/
static void
wlan_hdd_soc_set_antenna_mode_cb(enum set_antenna_mode_status status,
void *context)
{
struct osif_request *request = NULL;
hdd_debug("Status: %d", status);
request = osif_request_get(context);
if (!request) {
hdd_err("obselete request");
return;
}
/* Signal the completion of set dual mac config */
osif_request_complete(request);
osif_request_put(request);
}
int hdd_set_antenna_mode(struct hdd_adapter *adapter,
struct hdd_context *hdd_ctx, int mode)
{

View file

@ -12187,34 +12187,6 @@ end:
}
/**
* wlan_hdd_soc_set_antenna_mode_cb() - Callback for set dual
* mac scan config
* @status: Status of set antenna mode
* @context: callback context
*
* Callback on setting the dual mac configuration
*
* Return: None
*/
void wlan_hdd_soc_set_antenna_mode_cb(enum set_antenna_mode_status status,
void *context)
{
struct osif_request *request = NULL;
hdd_debug("Status: %d", status);
request = osif_request_get(context);
if (!request) {
hdd_err("obselete request");
return;
}
/* Signal the completion of set dual mac config */
osif_request_complete(request);
osif_request_put(request);
}
/**
* hdd_get_fw_version() - Get FW version
* @hdd_ctx: pointer to HDD context.