diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 41f41945ea..612deef8f9 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1566,9 +1566,6 @@ enum tos { /** Adapter structure definition */ struct hdd_context { - /** Global CDS context */ - v_CONTEXT_t pcds_context; - struct wlan_objmgr_psoc *hdd_psoc; struct wlan_objmgr_pdev *hdd_pdev; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index bd2243225b..d3e4f65c88 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7781,25 +7781,15 @@ static struct hdd_context *hdd_context_create(struct device *dev) QDF_STATUS status; int ret = 0; struct hdd_context *hdd_ctx; - v_CONTEXT_t p_cds_context; ENTER(); - p_cds_context = cds_get_global_context(); - if (p_cds_context == NULL) { - hdd_err("Failed to get CDS global context"); - ret = -EINVAL; - goto err_out; - } - hdd_ctx = hdd_cfg80211_wiphy_alloc(sizeof(struct hdd_context)); - if (hdd_ctx == NULL) { ret = -ENOMEM; goto err_out; } - hdd_ctx->pcds_context = p_cds_context; hdd_ctx->parent_dev = dev; hdd_ctx->last_scan_reject_session_id = 0xFF;