software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Cleanup for the 11h parameters that allocated memory, etc.
 *
 *  @param adapter mlan_adapter structure
 *
 *  @return      N/A
 */
@brief Cleanup for the 11h parameters that allocated memory, etc.
@param adapter mlan_adapter structure

@return      N/A
@brief Cleanup for the 11h parameters that allocated memory etc . @param adapter mlan_adapter structure @return N / A
t_void
wlan_11h_cleanup(mlan_adapter *adapter)
{
	wlan_dfs_device_state_t *pstate_dfs = &adapter->state_dfs;
	wlan_dfs_timestamp_t *pdfs_ts;
	ENTER();
	pdfs_ts = (wlan_dfs_timestamp_t *)util_peek_list(adapter->pmoal_handle,
							 &pstate_dfs->
							 dfs_ts_head, MNULL,
							 MNULL);
	while (pdfs_ts) {
		util_unlink_list(adapter->pmoal_handle,
				 &pstate_dfs->dfs_ts_head,
				 (pmlan_linked_list)pdfs_ts, MNULL, MNULL);
		adapter->callbacks.moal_mfree(adapter->pmoal_handle,
					      (t_u8 *)pdfs_ts);
		pdfs_ts =
			(wlan_dfs_timestamp_t *)util_peek_list(adapter->
							       pmoal_handle,
							       &pstate_dfs->
							       dfs_ts_head,
							       MNULL, MNULL);
	}
	LEAVE();
}
t_void wlan_11h_cleanup ( mlan_adapter * adapter ) { wlan_dfs_device_state_t * pstate_dfs = & adapter -> state_dfs ; wlan_dfs_timestamp_t * pdfs_ts ; ENTER ( ) ; pdfs_ts = ( wlan_dfs_timestamp_t * ) util_peek_list ( adapter -> pmoal_handle , & pstate_dfs -> dfs_ts_head , MNULL , MNULL ) ; while ( pdfs_ts ) { util_unlink_list ( adapter -> pmoal_handle , & pstate_dfs -> dfs_ts_head , ( pmlan_linked_list ) pdfs_ts , MNULL , MNULL ) ; adapter -> callbacks . moal_mfree ( adapter -> pmoal_handle , ( t_u8 * ) pdfs_ts ) ; pdfs_ts = ( wlan_dfs_timestamp_t * ) util_peek_list ( adapter -> pmoal_handle , & pstate_dfs -> dfs_ts_head , MNULL , MNULL ) ; } LEAVE ( ) ; }
@brief Cleanup for the 11h parameters that allocated memory, etc.
@brief Cleanup for the 11h parameters that allocated memory etc .
/* cleanup dfs_timestamp list */