qcacld-3.0: Change ucfg tdls API as wrapper to wlan API

Change ucfg_tdls_notify_connect_failure() API as a
wrapper to a new API wlan_tdls_notify_connect_failure()
which in turn calls the core API.

Change-Id: I998669f9c829cb91e21b359ba794f396214854e2
CRs-Fixed: 2767682
This commit is contained in:
Gururaj Pandurangi
2020-08-11 10:15:15 -07:00
committed by snandini
parent d146edd331
commit 5202fa8547
2 changed files with 18 additions and 3 deletions

View File

@@ -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 * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * 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 * 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 * 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 * @psoc: psoc object
* *
* Return: void * Return: void

View File

@@ -1191,11 +1191,25 @@ QDF_STATUS ucfg_tdls_set_rssi(struct wlan_objmgr_vdev *vdev,
return tdls_set_rssi(vdev, mac, rssi); 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); 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, struct wlan_objmgr_vdev *ucfg_get_tdls_vdev(struct wlan_objmgr_psoc *psoc,
wlan_objmgr_ref_dbgid dbg_id) wlan_objmgr_ref_dbgid dbg_id)
{ {