qcacld-3.0: Modify connect start code in if mgr
Modify connect start code in interface manager by moving disable roam and tdls link teardown notify APIs from HDD to if mgr. Alongside, move tdls link teardown notify API from HDD to if mgr in start bss API. Also, move the tdls link teardown API to TDLS module from HDD module as TDLS should manage the wait logic. Change-Id: I09fa31878563a3daaa7c5fde46327475829317b3 CRs-Fixed: 2811807
This commit is contained in:
42
components/tdls/dispatcher/inc/wlan_tdls_api.h
Normal file
42
components/tdls/dispatcher/inc/wlan_tdls_api.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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"
|
||||
|
||||
/**
|
||||
* 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);
|
||||
#endif
|
@@ -1337,4 +1337,12 @@ struct tdls_del_sta_req {
|
||||
struct qdf_mac_addr peermac;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct tdls_link_teardown - TDLS link teardown struct
|
||||
* @psoc: soc object
|
||||
*/
|
||||
struct tdls_link_teardown {
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -152,12 +152,20 @@ QDF_STATUS ucfg_tdls_send_mgmt_frame(
|
||||
QDF_STATUS ucfg_tdls_responder(struct tdls_set_responder_req *msg_req);
|
||||
|
||||
/**
|
||||
* ucfg_tdls_teardown_links() - teardown all TDLS links
|
||||
* ucfg_tdls_teardown_links() - notify TDLS modules to teardown all TDLS links.
|
||||
* @psoc: psoc object
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_tdls_teardown_links(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_tdls_teardown_links_sync() - teardown all TDLS links.
|
||||
* @psoc: psoc object
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
QDF_STATUS ucfg_tdls_teardown_links(struct wlan_objmgr_psoc *psoc);
|
||||
void ucfg_tdls_teardown_links_sync(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_tdls_notify_reset_adapter() - notify reset adapter
|
||||
@@ -350,6 +358,11 @@ QDF_STATUS ucfg_tdls_teardown_links(struct wlan_objmgr_psoc *psoc)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
void ucfg_tdls_teardown_links_sync(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
QDF_STATUS ucfg_tdls_set_rssi(struct wlan_objmgr_vdev *vdev,
|
||||
uint8_t *mac, int8_t rssi)
|
||||
|
Reference in New Issue
Block a user