qcacld-3.0: hdd: Remove unused SSR code

Remove unused SSR code which were used for legacy chipsets.

Change-Id: I3ae3f330a573383890d6e13dd626813f32fc0d51
CRs-fixed: 951587
This commit is contained in:
Prashanth Bhatta 2015-12-11 15:36:14 -08:00 • committed by Satish Singh
commit 29d7c9924b
2 changed files with 0 additions and 51 deletions

View file

@ -623,12 +623,6 @@ typedef struct hdd_cfg80211_state_s {
eP2PActionFrameState actionFrmState;
} hdd_cfg80211_state_t;
typedef enum {
HDD_SSR_NOT_REQUIRED,
HDD_SSR_REQUIRED,
HDD_SSR_DISABLED,
} e_hdd_ssr_required;
struct hdd_station_ctx {
/** Handle to the Wireless Extension State */
hdd_wext_state_t WextState;
@ -1397,8 +1391,6 @@ void wlan_hdd_reset_prob_rspies(hdd_adapter_t *pHostapdAdapter);
void hdd_prevent_suspend(uint32_t reason);
void hdd_allow_suspend(uint32_t reason);
void hdd_prevent_suspend_timeout(uint32_t timeout, uint32_t reason);
bool hdd_is_ssr_required(void);
void hdd_set_ssr_required(e_hdd_ssr_required value);
void wlan_hdd_cfg80211_update_wiphy_caps(struct wiphy *wiphy);
CDF_STATUS hdd_set_ibss_power_save_params(hdd_adapter_t *pAdapter);

View file

@ -146,8 +146,6 @@ static int wlan_hdd_inited;
DEFINE_SPINLOCK(hdd_context_lock);
static cdf_wake_lock_t wlan_wake_lock;
/* set when SSR is needed after unload */
static e_hdd_ssr_required is_ssr_required = HDD_SSR_NOT_REQUIRED;
#define WOW_MAX_FILTER_LISTS 1
#define WOW_MAX_FILTERS_PER_LIST 4
@ -3051,20 +3049,6 @@ CDF_STATUS hdd_start_all_adapters(hdd_context_t *hdd_ctx)
return CDF_STATUS_SUCCESS;
}
bool hdd_is_ssr_required(void)
{
return is_ssr_required == HDD_SSR_REQUIRED;
}
/* Once SSR is disabled then it cannot be set. */
void hdd_set_ssr_required(e_hdd_ssr_required value)
{
if (HDD_SSR_DISABLED == is_ssr_required)
return;
is_ssr_required = value;
}
CDF_STATUS hdd_get_front_adapter(hdd_context_t *hdd_ctx,
hdd_adapter_list_node_t **padapterNode)
{
@ -3569,19 +3553,6 @@ free_hdd_ctx:
wiphy_unregister(wiphy);
wiphy_free(wiphy);
if (hdd_is_ssr_required()) {
#ifdef MSM_PLATFORM
#ifdef CONFIG_CNSS
/*
* WDI timeout had happened during unload, so SSR is needed
* here
*/
subsystem_restart("wcnss");
#endif
#endif
msleep(5000);
}
hdd_set_ssr_required(false);
}
void __hdd_wlan_exit(void)
@ -5534,20 +5505,6 @@ err_free_hdd_context:
/* kfree(wdev) ; */
CDF_BUG(1);
if (hdd_is_ssr_required()) {
#ifdef MSM_PLATFORM
#ifdef CONFIG_CNSS
/*
* WDI timeout had happened during load, so SSR is needed
* here
*/
subsystem_restart("wcnss");
#endif
#endif
msleep(5000);
}
hdd_set_ssr_required(false);
return -EIO;
success: