software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Set driver debug bit masks to mlan in order to enhance performance
 *
 *  @param priv         A pointer to moal_private structure
 *  @param drvdbg       Driver debug level
 *
 *  @return             0 --success, otherwise fail
 */
@brief Set driver debug bit masks to mlan in order to enhance performance
@param priv         A pointer to moal_private structure
@param drvdbg       Driver debug level

@return             0 --success, otherwise fail
@brief Set driver debug bit masks to mlan in order to enhance performance @param priv A pointer to moal_private structure @param drvdbg Driver debug level @return 0 -- success otherwise fail
int
woal_set_drvdbg(moal_private *priv, t_u32 drvdbg)
{
	mlan_ioctl_req *req = NULL;
	mlan_ds_misc_cfg *misc = NULL;
	int ret = 0;
	ENTER();
	req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_misc_cfg));
	if (req == NULL) {
		LEAVE();
		return -ENOMEM;
	}
	misc = (mlan_ds_misc_cfg *)req->pbuf;
	misc->sub_command = MLAN_OID_MISC_DRVDBG;
	req->req_id = MLAN_IOCTL_MISC_CFG;
	req->action = MLAN_ACT_SET;
	misc->param.drvdbg = drvdbg;
	ret = woal_request_ioctl(priv, req, MOAL_IOCTL_WAIT);
	if (ret != MLAN_STATUS_PENDING)
		kfree(req);
	LEAVE();
	return ret;
}
int woal_set_drvdbg ( moal_private * priv , t_u32 drvdbg ) { mlan_ioctl_req * req = NULL ; mlan_ds_misc_cfg * misc = NULL ; int ret = 0 ; ENTER ( ) ; req = woal_alloc_mlan_ioctl_req ( sizeof ( mlan_ds_misc_cfg ) ) ; if ( req == NULL ) { LEAVE ( ) ; return - ENOMEM ; } misc = ( mlan_ds_misc_cfg * ) req -> pbuf ; misc -> sub_command = MLAN_OID_MISC_DRVDBG ; req -> req_id = MLAN_IOCTL_MISC_CFG ; req -> action = MLAN_ACT_SET ; misc -> param . drvdbg = drvdbg ; ret = woal_request_ioctl ( priv , req , MOAL_IOCTL_WAIT ) ; if ( ret != MLAN_STATUS_PENDING ) kfree ( req ) ; LEAVE ( ) ; return ret ; }
@brief Set driver debug bit masks to mlan in order to enhance performance
  @param priv         A pointer to moal_private structure
  @param drvdbg       Driver debug level
@brief Set driver debug bit masks to mlan in order to enhance performance @param priv A pointer to moal_private structure @param drvdbg Driver debug level