1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- /*
- * Copyright (c) 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 above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
- /*
- * DOC: contains tdls link teardown declarations
- */
- #ifndef _WLAN_TDLS_API_H_
- #define _WLAN_TDLS_API_H_
- #include "wlan_objmgr_psoc_obj.h"
- #include "wlan_objmgr_pdev_obj.h"
- #include "wlan_objmgr_vdev_obj.h"
- #ifdef FEATURE_WLAN_TDLS
- /**
- * wlan_tdls_teardown_links() - notify TDLS module to teardown all TDLS links
- * @psoc: psoc object
- *
- * Return: QDF_STATUS
- */
- QDF_STATUS wlan_tdls_teardown_links(struct wlan_objmgr_psoc *psoc);
- /**
- * wlan_tdls_teardown_links_sync() - teardown all the TDLS links
- * @psoc: psoc object
- *
- * Return: None
- */
- void wlan_tdls_teardown_links_sync(struct wlan_objmgr_psoc *psoc);
- /**
- * wlan_tdls_notify_sta_disconnect() - notify sta disconnect
- * @vdev_id: pointer to soc object
- * @lfr_roam: indicate, whether disconnect due to lfr roam
- * @bool user_disconnect: disconnect from user space
- * @vdev: vdev object manager
- *
- * Notify sta disconnect event to TDLS component
- *
- * Return: QDF_STATUS
- */
- void wlan_tdls_notify_sta_disconnect(uint8_t vdev_id,
- bool lfr_roam, bool user_disconnect,
- struct wlan_objmgr_vdev *vdev);
- /**
- * wlan_tdls_notify_sta_connect() - notify sta connect to TDLS
- * @vdev_id: pointer to soc object
- * @tdls_chan_swit_prohibited: indicates channel switch capability
- * @tdls_prohibited: indicates tdls allowed or not
- * @vdev: vdev object manager
- *
- * Notify sta connect event to TDLS component
- *
- * Return: None
- */
- void
- wlan_tdls_notify_sta_connect(uint8_t vdev_id,
- bool tdls_chan_swit_prohibited,
- bool tdls_prohibited,
- struct wlan_objmgr_vdev *vdev);
- #else
- static inline QDF_STATUS wlan_tdls_teardown_links(struct wlan_objmgr_psoc *psoc)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline void wlan_tdls_teardown_links_sync(struct wlan_objmgr_psoc *psoc)
- {}
- static inline
- void wlan_tdls_notify_sta_disconnect(uint8_t vdev_id,
- bool lfr_roam, bool user_disconnect,
- struct wlan_objmgr_vdev *vdev)
- {}
- static inline void
- wlan_tdls_notify_sta_connect(uint8_t vdev_id,
- bool tdls_chan_swit_prohibited,
- bool tdls_prohibited,
- struct wlan_objmgr_vdev *vdev) {}
- #endif
- #endif
|