|
@@ -1235,7 +1235,6 @@ static void hdd_ssr_restart_sap(struct hdd_context *hdd_ctx)
|
|
|
*/
|
|
|
QDF_STATUS hdd_wlan_shutdown(void)
|
|
|
{
|
|
|
- v_CONTEXT_t p_cds_context = NULL;
|
|
|
struct hdd_context *hdd_ctx;
|
|
|
p_cds_sched_context cds_sched_context = NULL;
|
|
|
QDF_STATUS qdf_status;
|
|
@@ -1243,13 +1242,6 @@ QDF_STATUS hdd_wlan_shutdown(void)
|
|
|
|
|
|
hdd_info("WLAN driver shutting down!");
|
|
|
|
|
|
- /* Get the global CDS context. */
|
|
|
- p_cds_context = cds_get_global_context();
|
|
|
- if (!p_cds_context) {
|
|
|
- hdd_err("Global CDS context is Null");
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
- }
|
|
|
-
|
|
|
/* Get the HDD context. */
|
|
|
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
if (!hdd_ctx) {
|
|
@@ -1371,7 +1363,6 @@ static void hdd_send_default_scan_ies(struct hdd_context *hdd_ctx)
|
|
|
QDF_STATUS hdd_wlan_re_init(void)
|
|
|
{
|
|
|
|
|
|
- v_CONTEXT_t p_cds_context = NULL;
|
|
|
struct hdd_context *hdd_ctx = NULL;
|
|
|
struct hdd_adapter *pAdapter;
|
|
|
int ret;
|
|
@@ -1379,13 +1370,6 @@ QDF_STATUS hdd_wlan_re_init(void)
|
|
|
|
|
|
hdd_prevent_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT);
|
|
|
|
|
|
- /* Get the CDS context */
|
|
|
- p_cds_context = cds_get_global_context();
|
|
|
- if (p_cds_context == NULL) {
|
|
|
- hdd_err("Failed cds_get_global_context");
|
|
|
- goto err_re_init;
|
|
|
- }
|
|
|
-
|
|
|
/* Get the HDD context */
|
|
|
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
if (!hdd_ctx) {
|