ソースを参照

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
Gururaj Pandurangi 4 年 前
コミット
5202fa8547

+ 3 - 2
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

+ 15 - 1
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)
 {