diff --git a/components/tdls/dispatcher/inc/wlan_tdls_ucfg_api.h b/components/tdls/dispatcher/inc/wlan_tdls_ucfg_api.h index ec0067c9af7e..7033beca04e7 100644 --- a/components/tdls/dispatcher/inc/wlan_tdls_ucfg_api.h +++ b/components/tdls/dispatcher/inc/wlan_tdls_ucfg_api.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -272,7 +272,8 @@ QDF_STATUS ucfg_tdls_set_rssi(struct wlan_objmgr_vdev *vdev, /** * ucfg_tdls_notify_connect_failure() - This api is called if STA/P2P * connection fails on one iface and to enable/disable TDLS on the other - * STA/P2P iface which is already connected. + * STA/P2P iface which is already connected.It is a wrapper function to + * API wlan_tdls_notify_connect_failure() * @psoc: psoc object * * Return: void diff --git a/components/tdls/dispatcher/src/wlan_tdls_ucfg_api.c b/components/tdls/dispatcher/src/wlan_tdls_ucfg_api.c index 4d3017fd281d..894a8a372cec 100644 --- a/components/tdls/dispatcher/src/wlan_tdls_ucfg_api.c +++ b/components/tdls/dispatcher/src/wlan_tdls_ucfg_api.c @@ -1191,11 +1191,25 @@ QDF_STATUS ucfg_tdls_set_rssi(struct wlan_objmgr_vdev *vdev, return tdls_set_rssi(vdev, mac, rssi); } -void ucfg_tdls_notify_connect_failure(struct wlan_objmgr_psoc *psoc) +/** + * wlan_tdls_notify_connect_failure() - This api is called if STA/P2P + * connection fails on one iface and to enable/disable TDLS on the other + * STA/P2P iface which is already connected. + * @psoc: psoc object + * + * Return: void + */ +static inline +void wlan_tdls_notify_connect_failure(struct wlan_objmgr_psoc *psoc) { return tdls_notify_decrement_session(psoc); } +void ucfg_tdls_notify_connect_failure(struct wlan_objmgr_psoc *psoc) +{ + return wlan_tdls_notify_connect_failure(psoc); +} + struct wlan_objmgr_vdev *ucfg_get_tdls_vdev(struct wlan_objmgr_psoc *psoc, wlan_objmgr_ref_dbgid dbg_id) {