qcacmn: Restructure TDLS function to fix the compilation issue
When TDLS disabled at the build level, it triggers build failures in some of the projects, which does not support TDLS feature. Restructure the TDLS function to avoid build failures, when TDLS is not enabled. Change-Id: I3b63546f22d0187fb42d400fd7e15ff7a3d64653 CRs-Fixed: 2056022
This commit is contained in:
@@ -193,6 +193,16 @@ void wlan_cfg80211_tdls_event_callback(void *userdata,
|
||||
void wlan_cfg80211_tdls_rx_callback(void *user_data,
|
||||
struct tdls_rx_mgmt_frame *rx_frame);
|
||||
|
||||
/**
|
||||
* hdd_notify_tdls_reset_adapter() - notify reset adapter to TDLS
|
||||
* @vdev: vdev object manager
|
||||
*
|
||||
* Notify hdd reset adapter to TDLS component
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void hdd_notify_tdls_reset_adapter(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
/**
|
||||
* hdd_notify_sta_connect() - notify sta connect to TDLS
|
||||
* @session_id: pointer to soc object
|
||||
@@ -236,6 +246,11 @@ void hdd_notify_sta_disconnect(uint8_t session_id,
|
||||
void hdd_notify_teardown_tdls_links(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
#else
|
||||
static inline void
|
||||
hdd_notify_tdls_reset_adapter(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
hdd_notify_sta_connect(uint8_t session_id,
|
||||
bool tdls_chan_swit_prohibited,
|
||||
|
@@ -104,6 +104,11 @@ void hdd_notify_teardown_tdls_links(struct wlan_objmgr_vdev *vdev)
|
||||
cfg80211_info("TDLS teardown completion status %ld ", rc);
|
||||
}
|
||||
|
||||
void hdd_notify_tdls_reset_adapter(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
ucfg_tdls_notify_reset_adapter(vdev);
|
||||
}
|
||||
|
||||
void
|
||||
hdd_notify_sta_connect(uint8_t session_id,
|
||||
bool tdls_chan_swit_prohibited,
|
||||
|
Reference in New Issue
Block a user