qcacld-3.0: Add feature capability support for ll_lt_sap

Currently there is no feature capability support for ll_lt_sap
and host driver and user space assumes that support for ll_lt_sap
is always present which not always true.
This may result in unexpected behavior if firmware does not
support ll_lt_sap.
To address this issue, add a feature capability to indicate
to userspace if host driver and firmware supports ll_lt_sap.

Change-Id: I7fbdb1996cab473f7a89761a35b6859fd2729c0a
CRs-Fixed: 3521091
This commit is contained in:
Ashish Kumar Dhanotiya
2023-06-02 15:15:13 +05:30
committad av Rahul Choudhary
förälder b9c1936672
incheckning e59e1f0884
5 ändrade filer med 44 tillägg och 0 borttagningar

Visa fil

@@ -92,3 +92,11 @@ QDF_STATUS ll_sap_deinit(void)
return ret;
}
bool ll_lt_sap_is_supported(void)
{
/* To do, check the FW capability to decide if this is supported
* or not supported.
*/
return true;
}

Visa fil

@@ -50,4 +50,11 @@ QDF_STATUS ll_sap_init(void);
*/
QDF_STATUS ll_sap_deinit(void);
/**
* ll_lt_sap_is_supported() - Check if ll_lt_sap is supported or not
*
* Return: True/False
*/
bool ll_lt_sap_is_supported(void);
#endif /* _WLAN_LL_SAP_MAIN_H_ */

Visa fil

@@ -39,6 +39,13 @@ QDF_STATUS ucfg_ll_sap_init(void);
*/
QDF_STATUS ucfg_ll_sap_deinit(void);
/**
* ucfg_is_ll_lt_sap_supported() - Check if ll_lt_sap is supported or not
*
* Return: True/False
*/
bool ucfg_is_ll_lt_sap_supported(void);
#else
static inline QDF_STATUS ucfg_ll_sap_init(void)
{
@@ -50,6 +57,11 @@ static inline QDF_STATUS ucfg_ll_sap_deinit(void)
return QDF_STATUS_SUCCESS;
}
static inline bool ucfg_is_ll_lt_sap_supported(void)
{
return false;
}
#endif /* WLAN_FEATURE_LL_LT_SAP */
#endif /* _WLAN_LL_SAP_UCFG_API_H_ */

Visa fil

@@ -32,3 +32,8 @@ QDF_STATUS ucfg_ll_sap_deinit(void)
return ll_sap_deinit();
}
bool ucfg_is_ll_lt_sap_supported(void)
{
return ll_lt_sap_is_supported();
}