/* This function is called by wl_set to execute either local dhd command
 * or send a dhd command over wl transport
 */
static int
ioctl_setinformation_fe(void *wl, int cmd, void* buf, int *len)
{
	if (remote_type == NO_REMOTE) {
		return dhd_ioctl(wl,  cmd, buf, *len, TRUE);
	} else {
		return rwl_setinformation_fe(wl, cmd, buf, (unsigned long*)len, 0, RDHD_SET_IOCTL);

	}
}
Exemple #2
0
static int
ioctl_setinformation_fe(void *wl, int cmd, void* buf, int *len)
{
	int error = BCME_OK;

	if (remote_type == NO_REMOTE)
		error = wl_ioctl(wl, cmd, buf, *len, TRUE);
	else if (rwl_setinformation_fe(wl, cmd, buf, (unsigned long *)len,
	                               0, REMOTE_SET_IOCTL) < 0)
		error = BCME_ERROR;

	return error;
}
static int
ioctl_setinformation_fe(void *wl, int cmd, void* buf, unsigned long *input_len)
{
    int error = 0;

    if (remote_type == NO_REMOTE) {
        error = wl_ioctl(wl,  cmd, buf, *input_len, TRUE);
    } else {
        error = rwl_setinformation_fe(wl, cmd, buf,
                                      input_len, 0, REMOTE_SET_IOCTL);
    }

    return error;
}
/* This function is called by wl_set to execute either local dhd command
 * or send a dhd command over wl transport
 */
static int
ioctl_setinformation_fe(void *wl, int cmd, void* buf, int *len)
{
	if (remote_type == NO_REMOTE) {
		return dhd_ioctl(wl,  cmd, buf, *len, TRUE);
	}
#ifdef RWL_ENABLE
	else {
		return rwl_setinformation_fe(wl, cmd, buf, (unsigned long*)len, 0, RDHD_SET_IOCTL);

	}
#else /* RWL_ENABLE */
	return IOCTL_ERROR;
#endif /* RWL_ENABLE */
}