diff --git a/components/dp/core/inc/wlan_dp_main.h b/components/dp/core/inc/wlan_dp_main.h index 8c99892539..1449d45939 100644 --- a/components/dp/core/inc/wlan_dp_main.h +++ b/components/dp/core/inc/wlan_dp_main.h @@ -283,13 +283,13 @@ dp_psoc_obj_destroy_notification(struct wlan_objmgr_psoc *psoc, void *arg); void dp_attach_ctx(struct wlan_dp_psoc_context *dp_ctx); /** - * dp_dettach_ctx() - to dettach dp context + * dp_detach_ctx() - to detach dp context * - * Helper function to dettach dp context + * Helper function to detach dp context * * Return: None. */ -void dp_dettach_ctx(void); +void dp_detach_ctx(void); /** * dp_get_context() - to get dp context diff --git a/components/dp/core/src/wlan_dp_main.c b/components/dp/core/src/wlan_dp_main.c index bc7729b76d..02f7d8d002 100644 --- a/components/dp/core/src/wlan_dp_main.c +++ b/components/dp/core/src/wlan_dp_main.c @@ -63,7 +63,7 @@ void dp_free_ctx(void) qdf_spinlock_destroy(&dp_ctx->intf_list_lock); qdf_list_destroy(&dp_ctx->intf_list); - dp_dettach_ctx(); + dp_detach_ctx(); qdf_mem_free(dp_ctx); } @@ -1113,10 +1113,10 @@ void dp_attach_ctx(struct wlan_dp_psoc_context *dp_ctx) gp_dp_ctx = dp_ctx; } -void dp_dettach_ctx(void) +void dp_detach_ctx(void) { if (!gp_dp_ctx) { - dp_err("global dp ctx is already dettached"); + dp_err("global dp ctx is already detached"); return; } gp_dp_ctx = NULL;