qcacmn: Add API to get link ID from Basic Variant ML element

Add API to get the link identifier from a given Basic variant
Multi-Link element or element fragment sequence, of the AP that
transmits the Multi-Link element/element fragment sequence or the
nontransmitted BSSID in the same multiple BSSID set as the AP that
transmits the Multi-Link element/element fragment sequence and that is
affiliated with the MLD that is described in the Multi-Link element.

Change-Id: I45039a6ed8ccd9403eae9514c60bcd8d694d2a31
CRs-Fixed: 3040407
This commit is contained in:
Krishna Rao
2021-09-20 20:09:13 +05:30
committed by Madan Koyyalamudi
부모 430a5f423e
커밋 5f1d4dd7fb
2개의 변경된 파일100개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@@ -116,6 +116,33 @@ QDF_STATUS
util_get_bvmlie_mldmacaddr(uint8_t *mlieseq, qdf_size_t mlieseqlen,
bool *mldmacaddrfound,
struct qdf_mac_addr *mldmacaddr);
/**
* util_get_bvmlie_primary_linkid - Get the link identifier from a given Basic
* variant Multi-Link element or element fragment sequence, of the AP that
* transmits the Multi-Link element/element fragment sequence or the
* nontransmitted BSSID in the same multiple BSSID set as the AP that transmits
* the Multi-Link element/element fragment sequence and that is affiliated with
* the MLD that is described in the Multi-Link element.
*
* @mlieseq: Starting address of the Multi-Link element or Multi-Link element
* fragment sequence
* @mlieseqlen: Total length of the Multi-Link element or Multi-Link element
* fragment sequence
* @linkidfound: Pointer to the location where a boolean status should be
* updated indicating whether the link identifier was found or not. This should
* be ignored by the caller if the function returns error.
* @linkid: Pointer to the location where the value of the link identifier
* should be updated. This should be ignored by the caller if the function
* returns error, or if the function indicates that the link identifier was not
* found.
*
* Return: QDF_STATUS_SUCCESS in the case of success, QDF_STATUS value giving
* the reason for error in the case of failure
*/
QDF_STATUS
util_get_bvmlie_primary_linkid(uint8_t *mlieseq, qdf_size_t mlieseqlen,
bool *linkidfound, uint8_t *linkid);
#else
static inline QDF_STATUS
util_gen_link_assoc_rsp(uint8_t *frame, qdf_size_t len,
@@ -145,5 +172,12 @@ util_get_bvmlie_mldmacaddr(uint8_t *mlieseq, qdf_size_t mlieseqlen,
{
return QDF_STATUS_E_NOSUPPORT;
}
static inline QDF_STATUS
util_get_bvmlie_primary_linkid(uint8_t *mlieseq, qdf_size_t mlieseqlen,
bool *linkidfound, uint8_t *linkid)
{
return QDF_STATUS_E_NOSUPPORT;
}
#endif /* WLAN_FEATURE_11BE_MLO */
#endif /* _WLAN_UTILS_MLO_H_ */