qcacld-3.0: Disallow TDLS when NAN is active
Since NAN has higher priority over TDLS, disallow TDLS link when NAN is active. Change-Id: I7de34dbb2f808c36358ac5266c26e2729b901941 CRs-fixed: 2537158
Цей коміт міститься в:

зафіксовано
nshrivas

джерело
d097ea1836
коміт
cf5048294b
@@ -1046,6 +1046,17 @@ bool nan_is_enable_allowed(struct wlan_objmgr_psoc *psoc, uint8_t nan_chan)
|
||||
HW_MODE_20_MHZ));
|
||||
}
|
||||
|
||||
bool nan_is_disc_active(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
if (!psoc) {
|
||||
nan_err("psoc object object is NULL");
|
||||
return false;
|
||||
}
|
||||
|
||||
return (NAN_DISC_ENABLED == nan_get_discovery_state(psoc) ||
|
||||
NAN_DISC_ENABLE_IN_PROGRESS == nan_get_discovery_state(psoc));
|
||||
}
|
||||
|
||||
QDF_STATUS nan_discovery_pre_enable(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t nan_social_channel)
|
||||
{
|
||||
|
@@ -244,6 +244,14 @@ enum nan_disc_state nan_get_discovery_state(struct wlan_objmgr_psoc *psoc);
|
||||
*/
|
||||
bool nan_is_enable_allowed(struct wlan_objmgr_psoc *psoc, uint8_t nan_chan);
|
||||
|
||||
/*
|
||||
* nan_is_disc_active: Queries whether NAN Discovery is active
|
||||
* @psoc: PSOC object
|
||||
*
|
||||
* Return: True if NAN Disc is active, False otherwise
|
||||
*/
|
||||
bool nan_is_disc_active(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/*
|
||||
* nan_get_connection_info: Gets connection info of the NAN Discovery interface
|
||||
* @psoc: PSOC object
|
||||
|
@@ -283,6 +283,15 @@ bool ucfg_is_nan_sap_supported(struct wlan_objmgr_psoc *psoc);
|
||||
bool ucfg_is_nan_enable_allowed(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t nan_chan);
|
||||
|
||||
/**
|
||||
* ucfg_is_nan_disc_active() - ucfg API to query if NAN Discovery is
|
||||
* active
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return: True if NAN Discovery is active, False otherwise
|
||||
*/
|
||||
bool ucfg_is_nan_disc_active(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_nan_set_tgt_caps: ucfg API to set the NAN capabilities of the Target
|
||||
* @psoc: pointer to psoc object
|
||||
@@ -359,5 +368,10 @@ static inline void ucfg_nan_psoc_close(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
|
||||
static inline bool ucfg_is_nan_disc_active(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* WLAN_FEATURE_NAN */
|
||||
#endif /* _NAN_UCFG_API_H_ */
|
||||
|
@@ -553,6 +553,11 @@ bool ucfg_is_nan_enable_allowed(struct wlan_objmgr_psoc *psoc, uint8_t nan_chan)
|
||||
return nan_is_enable_allowed(psoc, nan_chan);
|
||||
}
|
||||
|
||||
bool ucfg_is_nan_disc_active(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return nan_is_disc_active(psoc);
|
||||
}
|
||||
|
||||
QDF_STATUS ucfg_nan_discovery_req(void *in_req, uint32_t req_type)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
Посилання в новій задачі
Заблокувати користувача