software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief	This function deallocates otp cfp and power tables memory.
 *
 *  @param pmadapter	A pointer to mlan_adapter structure
 */
@brief      This function deallocates otp cfp and power tables memory.
@param pmadapter    A pointer to mlan_adapter structure
@brief This function deallocates otp cfp and power tables memory . @param pmadapter A pointer to mlan_adapter structure
void
wlan_free_fw_cfp_tables(mlan_adapter *pmadapter)
{
	pmlan_callbacks pcb;
	ENTER();
	pcb = &pmadapter->callbacks;
	if (pmadapter->otp_region)
		pcb->moal_mfree(pmadapter->pmoal_handle,
				(t_u8 *)pmadapter->otp_region);
	if (pmadapter->cfp_otp_bg)
		pcb->moal_mfree(pmadapter->pmoal_handle,
				(t_u8 *)pmadapter->cfp_otp_bg);
	if (pmadapter->tx_power_table_bg)
		pcb->moal_mfree(pmadapter->pmoal_handle,
				(t_u8 *)pmadapter->tx_power_table_bg);
	pmadapter->otp_region = MNULL;
	pmadapter->cfp_otp_bg = MNULL;
	pmadapter->tx_power_table_bg = MNULL;
	pmadapter->tx_power_table_bg_size = 0;
	if (pmadapter->cfp_otp_a)
		pcb->moal_mfree(pmadapter->pmoal_handle,
				(t_u8 *)pmadapter->cfp_otp_a);
	if (pmadapter->tx_power_table_a)
		pcb->moal_mfree(pmadapter->pmoal_handle,
				(t_u8 *)pmadapter->tx_power_table_a);
	pmadapter->cfp_otp_a = MNULL;
	pmadapter->tx_power_table_a = MNULL;
	pmadapter->tx_power_table_a_size = 0;
	LEAVE();
}
void wlan_free_fw_cfp_tables ( mlan_adapter * pmadapter ) { pmlan_callbacks pcb ; ENTER ( ) ; pcb = & pmadapter -> callbacks ; if ( pmadapter -> otp_region ) pcb -> moal_mfree ( pmadapter -> pmoal_handle , ( t_u8 * ) pmadapter -> otp_region ) ; if ( pmadapter -> cfp_otp_bg ) pcb -> moal_mfree ( pmadapter -> pmoal_handle , ( t_u8 * ) pmadapter -> cfp_otp_bg ) ; if ( pmadapter -> tx_power_table_bg ) pcb -> moal_mfree ( pmadapter -> pmoal_handle , ( t_u8 * ) pmadapter -> tx_power_table_bg ) ; pmadapter -> otp_region = MNULL ; pmadapter -> cfp_otp_bg = MNULL ; pmadapter -> tx_power_table_bg = MNULL ; pmadapter -> tx_power_table_bg_size = 0 ; if ( pmadapter -> cfp_otp_a ) pcb -> moal_mfree ( pmadapter -> pmoal_handle , ( t_u8 * ) pmadapter -> cfp_otp_a ) ; if ( pmadapter -> tx_power_table_a ) pcb -> moal_mfree ( pmadapter -> pmoal_handle , ( t_u8 * ) pmadapter -> tx_power_table_a ) ; pmadapter -> cfp_otp_a = MNULL ; pmadapter -> tx_power_table_a = MNULL ; pmadapter -> tx_power_table_a_size = 0 ; LEAVE ( ) ; }
@brief      This function deallocates otp cfp and power tables memory.
@brief This function deallocates otp cfp and power tables memory .