software/drivers/sd8887/src/wlan/mlinux/moal_cfg80211.c
/**
 * @brief clear all mgmt ies
 *
 * @param priv              A pointer to moal private structure
 * @param wait_option       wait_option
 * @return                  N/A
 */
@brief clear all mgmt ies
@param priv              A pointer to moal private structure
@param wait_option       wait_option
@return                  N/A
@brief clear all mgmt ies @param priv A pointer to moal private structure @param wait_option wait_option @return N / A
void
woal_clear_all_mgmt_ies(moal_private *priv, t_u8 wait_option)
{
	t_u16 mask = 0;
	if (priv->beacon_wps_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK) {
		PRINTM(MCMND, "Clear BEACON WPS ie\n");
		woal_cfg80211_mgmt_frame_ie(priv, NULL, 0, NULL, 0, NULL, 0,
					    NULL, 0, MGMT_MASK_BEACON_WPS_P2P,
					    wait_option);
		priv->beacon_wps_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	}
	if (priv->assocresp_qos_map_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK) {
		PRINTM(MCMND, "Clear associate response QOS map ie\n");
		woal_cfg80211_mgmt_frame_ie(priv, NULL, 0, NULL, 0, NULL, 0,
					    NULL, 0,
					    MGMT_MASK_ASSOC_RESP_QOS_MAP,
					    wait_option);
		priv->assocresp_qos_map_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	}
	if (priv->probereq_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_PROBE_REQ;
	if (priv->beacon_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_BEACON;
	if (priv->proberesp_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_PROBE_RESP;
	if (priv->assocresp_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_ASSOC_RESP;
	if (priv->proberesp_p2p_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_PROBE_RESP;
	if (priv->beacon_vendor_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK)
		mask |= MGMT_MASK_BEACON;
	if (mask) {
		PRINTM(MCMND, "Clear IES: 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x\n",
		       priv->beacon_index, priv->probereq_index,
		       priv->proberesp_index, priv->assocresp_index,
		       priv->proberesp_p2p_index, priv->beacon_vendor_index);
		woal_cfg80211_mgmt_frame_ie(priv, NULL, 0, NULL, 0, NULL, 0,
					    NULL, 0, mask, wait_option);
	}
	priv->probereq_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	priv->beacon_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	priv->proberesp_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	priv->assocresp_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	priv->proberesp_p2p_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
	priv->beacon_vendor_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK;
}
void woal_clear_all_mgmt_ies ( moal_private * priv , t_u8 wait_option ) { t_u16 mask = 0 ; if ( priv -> beacon_wps_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) { PRINTM ( MCMND , " \n " ) ; woal_cfg80211_mgmt_frame_ie ( priv , NULL , 0 , NULL , 0 , NULL , 0 , NULL , 0 , MGMT_MASK_BEACON_WPS_P2P , wait_option ) ; priv -> beacon_wps_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; } if ( priv -> assocresp_qos_map_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) { PRINTM ( MCMND , " \n " ) ; woal_cfg80211_mgmt_frame_ie ( priv , NULL , 0 , NULL , 0 , NULL , 0 , NULL , 0 , MGMT_MASK_ASSOC_RESP_QOS_MAP , wait_option ) ; priv -> assocresp_qos_map_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; } if ( priv -> probereq_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_PROBE_REQ ; if ( priv -> beacon_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_BEACON ; if ( priv -> proberesp_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_PROBE_RESP ; if ( priv -> assocresp_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_ASSOC_RESP ; if ( priv -> proberesp_p2p_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_PROBE_RESP ; if ( priv -> beacon_vendor_index != MLAN_CUSTOM_IE_AUTO_IDX_MASK ) mask |= MGMT_MASK_BEACON ; if ( mask ) { PRINTM ( MCMND , " \n " , priv -> beacon_index , priv -> probereq_index , priv -> proberesp_index , priv -> assocresp_index , priv -> proberesp_p2p_index , priv -> beacon_vendor_index ) ; woal_cfg80211_mgmt_frame_ie ( priv , NULL , 0 , NULL , 0 , NULL , 0 , NULL , 0 , mask , wait_option ) ; } priv -> probereq_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; priv -> beacon_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; priv -> proberesp_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; priv -> assocresp_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; priv -> proberesp_p2p_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; priv -> beacon_vendor_index = MLAN_CUSTOM_IE_AUTO_IDX_MASK ; }
@brief clear all mgmt ies
 @param priv              A pointer to moal private structure
 @param wait_option       wait_option
 @return                  N/A
@brief clear all mgmt ies @param priv A pointer to moal private structure @param wait_option wait_option @return N / A
/* clear BEACON WPS/P2P IE */ /* clear mgmt frame ies */