software/drivers/sd8887/src/wlan/mlan/mlan_scan.c
/**
 *  @brief This function will pass the correct ie and oui to search_oui_in_ie
 *
 *  Check the pbss_desc for appropriate IE and then check if RSN IE has AES
 *  OUI in it. If RSN IE does not have AES in PTK then return 0;
 *
 *  @param pbss_desc       A pointer to current BSS descriptor
 *  @return                0 on failure to find AES OUI, 1 on success.
 */
@brief This function will pass the correct ie and oui to search_oui_in_ie
Check the pbss_desc for appropriate IE and then check if RSN IE has AES
OUI in it.

@param pbss_desc       A pointer to current BSS descriptor
@return                0 on failure to find AES OUI, 1 on success.
@brief This function will pass the correct ie and oui to search_oui_in_ie Check the pbss_desc for appropriate IE and then check if RSN IE has AES OUI in it . @param pbss_desc A pointer to current BSS descriptor @return 0 on failure to find AES OUI 1 on success .
static t_u8
is_rsn_oui_present(mlan_adapter *pmadapter, BSSDescriptor_t *pbss_desc,
		   t_u32 cipher_suite)
{
	t_u8 *oui = MNULL;
	IEBody *ie_body = MNULL;
	t_u8 ret = MLAN_OUI_NOT_PRESENT;
	ENTER();
	if (((pbss_desc->prsn_ie) &&
	     ((*(pbss_desc->prsn_ie)).ieee_hdr.element_id == RSN_IE))) {
		ie_body =
			(IEBody *)(((t_u8 *)pbss_desc->prsn_ie->data) +
				   RSN_GTK_OUI_OFFSET);
		oui = &rsn_oui[cipher_suite][0];
		ret = search_oui_in_ie(pmadapter, ie_body, oui);
		if (ret) {
			LEAVE();
			return ret;
		}
	}
	LEAVE();
	return ret;
}
static t_u8 is_rsn_oui_present ( mlan_adapter * pmadapter , BSSDescriptor_t * pbss_desc , t_u32 cipher_suite ) { t_u8 * oui = MNULL ; IEBody * ie_body = MNULL ; t_u8 ret = MLAN_OUI_NOT_PRESENT ; ENTER ( ) ; if ( ( ( pbss_desc -> prsn_ie ) && ( ( * ( pbss_desc -> prsn_ie ) ) . ieee_hdr . element_id == RSN_IE ) ) ) { ie_body = ( IEBody * ) ( ( ( t_u8 * ) pbss_desc -> prsn_ie -> data ) + RSN_GTK_OUI_OFFSET ) ; oui = & rsn_oui [ cipher_suite ] [ 0 ] ; ret = search_oui_in_ie ( pmadapter , ie_body , oui ) ; if ( ret ) { LEAVE ( ) ; return ret ; } } LEAVE ( ) ; return ret ; }
@brief This function will pass the correct ie and oui to search_oui_in_ie
  Check the pbss_desc for appropriate IE and then check if RSN IE has AES
  OUI in it.
@brief This function will pass the correct ie and oui to search_oui_in_ie Check the pbss_desc for appropriate IE and then check if RSN IE has AES OUI in it .