software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Send 11d enable/disable command to firmware.
 *
 *  @param priv             A pointer to moal_private structure
 *  @param wait_option      Wait option
 *  @param enable           Enable/Disable 11d
 *
 *  @return                 MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
 */
@brief Send 11d enable/disable command to firmware.
@param priv             A pointer to moal_private structure
@param wait_option      Wait option
@param enable           Enable/Disable 11d


@brief Send 11d enable / disable command to firmware . @param priv A pointer to moal_private structure @param wait_option Wait option @param enable Enable / Disable 11d
mlan_status
woal_set_11d(moal_private *priv, t_u8 wait_option, t_u8 enable)
{
	mlan_ioctl_req *req = NULL;
	mlan_ds_snmp_mib *snmp = NULL;
	mlan_status ret = MLAN_STATUS_SUCCESS;
	ENTER();
	req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_snmp_mib));
	if (req == NULL) {
		LEAVE();
		return -ENOMEM;
	}
	req->action = MLAN_ACT_SET;
	req->req_id = MLAN_IOCTL_SNMP_MIB;
	snmp = (mlan_ds_snmp_mib *)req->pbuf;
	snmp->sub_command = MLAN_OID_SNMP_MIB_DOT11D;
	snmp->param.oid_value = enable;
	ret = woal_request_ioctl(priv, req, MOAL_IOCTL_WAIT);
	if (ret != MLAN_STATUS_PENDING)
		kfree(req);
	LEAVE();
	return ret;
}
mlan_status woal_set_11d ( moal_private * priv , t_u8 wait_option , t_u8 enable ) { mlan_ioctl_req * req = NULL ; mlan_ds_snmp_mib * snmp = NULL ; mlan_status ret = MLAN_STATUS_SUCCESS ; ENTER ( ) ; req = woal_alloc_mlan_ioctl_req ( sizeof ( mlan_ds_snmp_mib ) ) ; if ( req == NULL ) { LEAVE ( ) ; return - ENOMEM ; } req -> action = MLAN_ACT_SET ; req -> req_id = MLAN_IOCTL_SNMP_MIB ; snmp = ( mlan_ds_snmp_mib * ) req -> pbuf ; snmp -> sub_command = MLAN_OID_SNMP_MIB_DOT11D ; snmp -> param . oid_value = enable ; ret = woal_request_ioctl ( priv , req , MOAL_IOCTL_WAIT ) ; if ( ret != MLAN_STATUS_PENDING ) kfree ( req ) ; LEAVE ( ) ; return ret ; }
@brief Send 11d enable/disable command to firmware.
@brief Send 11d enable / disable command to firmware .