software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanconfig.c
/**
 *  @brief Performs the ioctl operation to send the command to
 *  the driver.
 *
 *  @param cmd_buf       Pointer to the command buffer
 *  @param buf_size      Size of the allocated command buffer
 *  @return              MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief Performs the ioctl operation to send the command to
the driver.

@param cmd_buf       Pointer to the command buffer
@param buf_size      Size of the allocated command buffer
@return              MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief Performs the ioctl operation to send the command to the driver . @param cmd_buf Pointer to the command buffer @param buf_size Size of the allocated command buffer @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
static int
tdls_ioctl(t_u8 *cmd_buf, t_u16 buf_size)
{
	struct ifreq ifr;
	memset(&ifr, 0, sizeof(ifr));
	strncpy(ifr.ifr_ifrn.ifrn_name, dev_name, strlen(dev_name));
	ifr.ifr_ifru.ifru_data = (void *)cmd_buf;
	if (ioctl(sockfd, TDLS_IOCTL, &ifr)) {
		perror("");
		return MLAN_STATUS_FAILURE;
	}
	return MLAN_STATUS_SUCCESS;
}
static int tdls_ioctl ( t_u8 * cmd_buf , t_u16 buf_size ) { struct ifreq ifr ; memset ( & ifr , 0 , sizeof ( ifr ) ) ; strncpy ( ifr . ifr_ifrn . ifrn_name , dev_name , strlen ( dev_name ) ) ; ifr . ifr_ifru . ifru_data = ( void * ) cmd_buf ; if ( ioctl ( sockfd , TDLS_IOCTL , & ifr ) ) { perror ( " " ) ; return MLAN_STATUS_FAILURE ; } return MLAN_STATUS_SUCCESS ; }
@brief Performs the ioctl operation to send the command to
  the driver.
@brief Performs the ioctl operation to send the command to the driver .
/* Initialize the ifr structure */ /* Perform ioctl */