qcacmn: Add Bandwidth Indication Element support

Adding Bandwidth Indication Element Sub IE structure and other support

Change-Id: Iae761582e8c5d2b12af231e58c6dcbb23421e9dd
CRs-Fixed: 3444254
This commit is contained in:
Guru Pratap Sharma
2023-03-22 00:28:46 -07:00
committed by Madan Koyyalamudi
parent 9a52f07701
commit 08131c79a1
4 changed files with 55 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ struct channel_info {
* @rsnxe: Pointer to rsnxe IE
* @ehtcap: pointer to ehtcap ie
* @ehtop: pointer to eht op ie
* @bw_ind: pointer to bandwidth indication element sub ie
* @multi_link_bv: pointer to multi link basic variant IE
* @multi_link_rv: pointer to multi link reconfig IE
* @t2lm: array of pointers to t2lm op ie
@@ -276,6 +277,7 @@ struct ie_list {
#ifdef WLAN_FEATURE_11BE
uint8_t *ehtcap;
uint8_t *ehtop;
uint8_t *bw_ind;
#endif
#ifdef WLAN_FEATURE_11BE_MLO
uint8_t *multi_link_bv;

View File

@@ -741,6 +741,8 @@ util_scan_copy_beacon_data(struct scan_cache_entry *new_entry,
/* This macro will be removed once 11be is enabled */
ie_lst->ehtcap = conv_ptr(ie_lst->ehtcap, old_ptr, new_ptr);
ie_lst->ehtop = conv_ptr(ie_lst->ehtop, old_ptr, new_ptr);
ie_lst->bw_ind =
conv_ptr(ie_lst->bw_ind, old_ptr, new_ptr);
#endif
#ifdef WLAN_FEATURE_11BE_MLO
ie_lst->multi_link_bv =
@@ -1590,6 +1592,12 @@ util_scan_entry_ehtop(struct scan_cache_entry *scan_entry)
{
return scan_entry->ie_list.ehtop;
}
static inline uint8_t*
util_scan_entry_bw_ind(struct scan_cache_entry *scan_entry)
{
return scan_entry->ie_list.bw_ind;
}
#else
static inline uint8_t*
@@ -1597,6 +1605,12 @@ util_scan_entry_ehtcap(struct scan_cache_entry *scan_entry)
{
return NULL;
}
static inline uint8_t*
util_scan_entry_bw_ind(struct scan_cache_entry *scan_entry)
{
return NULL;
}
#endif
#ifdef WLAN_FEATURE_11BE_MLO