qcacld-3.0: Move code from CSR to roam scan offload to new structs

Move code from CSR to roam scan offload to use new converged
structures.

Change-Id: Ie69a88f419d38ec611b4dc18ed15d7eb1f53e1ae
CRs-Fixed: 2853488
Cette révision appartient à :
gaurank kathpalia
2021-01-13 17:25:03 +05:30
révisé par snandini
Parent d996aa9f85
révision e484040fb0
24 fichiers modifiés avec 1163 ajouts et 1053 suppressions

Voir le fichier

@@ -652,6 +652,7 @@ QDF_STATUS wlan_mlme_get_bssid_vdev_id(struct wlan_objmgr_pdev *pdev,
* Return: chan freq of given vdev id
*/
qdf_freq_t wlan_get_operation_chan_freq(struct wlan_objmgr_vdev *vdev);
/**
* wlan_get_operation_chan_freq_vdev_id() - get operating chan freq of
* given vdev id
@@ -689,6 +690,18 @@ QDF_STATUS wlan_strip_ie(uint8_t *addn_ie, uint16_t *addn_ielen,
uint8_t *oui, uint8_t oui_length,
uint8_t *extracted_ie, uint32_t eid_max_len);
/**
* wlan_is_channel_present_in_list() - check if rfeq is present in the list
* given vdev id
* @freq_lst: given freq list
* @num_chan: num of chan freq
* @chan_freq: chan freq to check
*
* Return: chan freq of given vdev id
*/
bool wlan_is_channel_present_in_list(qdf_freq_t *freq_lst,
uint32_t num_chan, qdf_freq_t chan_freq);
#if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
/**
* mlme_get_supplicant_disabled_roaming() - Get supplicant disabled roaming

Voir le fichier

@@ -2889,6 +2889,25 @@ QDF_STATUS wlan_strip_ie(uint8_t *addn_ie, uint16_t *addn_ielen,
return QDF_STATUS_SUCCESS;
}
bool wlan_is_channel_present_in_list(qdf_freq_t *freq_lst,
uint32_t num_chan, qdf_freq_t chan_freq)
{
int i = 0;
/* Check for NULL pointer */
if (!freq_lst || (num_chan == 0))
return false;
/* Look for the channel in the list */
for (i = 0; (i < num_chan) && (i < CFG_VALID_CHANNEL_LIST_LEN); i++) {
if (freq_lst[i] == chan_freq)
return true;
}
return false;
}
#if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
static
const char *mlme_roam_state_to_string(enum roam_offload_state state)

Voir le fichier

@@ -33,8 +33,6 @@
#define OWE_TRANSITION_OUI_TYPE "\x50\x6f\x9a\x1c"
#define OWE_TRANSITION_OUI_SIZE 4
#define CFG_VALID_CHANNEL_LIST_LEN 100
#define CFG_PMKID_MODES_OKC (0x1)
#define CFG_PMKID_MODES_PMKSA_CACHING (0x2)