software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief 802.11h DFS Channel Switch Count Configuration
 *
 *  @param pmadapter    Pointer to mlan_adapter
 *  @param pioctl_req   Pointer to mlan_ioctl_req
 *
 *  @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief 802.11h DFS Channel Switch Count Configuration
@param pmadapter    Pointer to mlan_adapter
@param pioctl_req   Pointer to mlan_ioctl_req


@brief 802 . 11h DFS Channel Switch Count Configuration @param pmadapter Pointer to mlan_adapter @param pioctl_req Pointer to mlan_ioctl_req
mlan_status
wlan_11h_ioctl_chan_switch_count(pmlan_adapter pmadapter,
				 pmlan_ioctl_req pioctl_req)
{
	mlan_ds_11h_cfg *ds_11hcfg = MNULL;
	t_s32 ret = MLAN_STATUS_FAILURE;
	ENTER();
	if (pioctl_req) {
		ds_11hcfg = (mlan_ds_11h_cfg *)pioctl_req->pbuf;
		if (pioctl_req->action == MLAN_ACT_GET) {
			ds_11hcfg->param.cs_count = pmadapter->dfs_cs_count;
		} else {
			pmadapter->dfs_cs_count = ds_11hcfg->param.cs_count;
		}
		ret = MLAN_STATUS_SUCCESS;
	}
	LEAVE();
	return ret;
}
mlan_status wlan_11h_ioctl_chan_switch_count ( pmlan_adapter pmadapter , pmlan_ioctl_req pioctl_req ) { mlan_ds_11h_cfg * ds_11hcfg = MNULL ; t_s32 ret = MLAN_STATUS_FAILURE ; ENTER ( ) ; if ( pioctl_req ) { ds_11hcfg = ( mlan_ds_11h_cfg * ) pioctl_req -> pbuf ; if ( pioctl_req -> action == MLAN_ACT_GET ) { ds_11hcfg -> param . cs_count = pmadapter -> dfs_cs_count ; } else { pmadapter -> dfs_cs_count = ds_11hcfg -> param . cs_count ; } ret = MLAN_STATUS_SUCCESS ; } LEAVE ( ) ; return ret ; }
@brief 802.11h DFS Channel Switch Count Configuration
  @param pmadapter    Pointer to mlan_adapter
  @param pioctl_req   Pointer to mlan_ioctl_req
@brief 802 . 11h DFS Channel Switch Count Configuration @param pmadapter Pointer to mlan_adapter @param pioctl_req Pointer to mlan_ioctl_req