linux/drivers/staging/rtl8712/os_intfs.c

// SPDX-License-Identifier: GPL-2.0
/******************************************************************************
 * os_intfs.c
 *
 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
 * Linux device driver for RTL8192SU
 *
 * Modifications for inclusion into the Linux staging tree are
 * Copyright(c) 2010 Larry Finger. All rights reserved.
 *
 * Contact information:
 * WLAN FAE <[email protected]>.
 * Larry Finger <[email protected]>
 *
 ******************************************************************************/

#define _OS_INTFS_C_

#include <linux/module.h>
#include <linux/kthread.h>
#include <linux/firmware.h>
#include "osdep_service.h"
#include "drv_types.h"
#include "xmit_osdep.h"
#include "recv_osdep.h"
#include "rtl871x_ioctl.h"
#include "usb_osintf.h"

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();

static char ifname[IFNAMSIZ] =;

/* module param defaults */
static int chip_version =;
static int rfintfs =;
static int lbkmode =;
static int hci =;
static int ampdu_enable =;/*for enable tx_ampdu*/

/* The video_mode variable is for video mode.*/
/* It may be specify when inserting module with video_mode=1 parameter.*/
static int video_mode =;   /* enable video mode*/

/*Ndis802_11Infrastructure; infra, ad-hoc, auto*/
static int network_mode =;
static int channel =;/*ad-hoc support requirement*/
static int wireless_mode =;
static int vrtl_carrier_sense =;
static int vcs_type =;
static int frag_thresh =;
static int preamble =;/*long, short, auto*/
static int scan_mode =;/*active, passive*/
static int adhoc_tx_pwr =;
static int soft_ap;
static int smart_ps =;
static int power_mgnt =;
static int radio_enable =;
static int long_retry_lmt =;
static int short_retry_lmt =;
static int busy_thresh =;
static int ack_policy =;
static int mp_mode;
static int software_encrypt;
static int software_decrypt;

static int wmm_enable;/* default is set to disable the wmm.*/
static int uapsd_enable;
static int uapsd_max_sp =;
static int uapsd_acbk_en;
static int uapsd_acbe_en;
static int uapsd_acvi_en;
static int uapsd_acvo_en;

static int ht_enable =;
static int cbw40_enable =;
static int rf_config =;  /* 1T2R*/
static int low_power;
/* mac address to use instead of the one stored in Efuse */
char *r8712_initmac;
static char *initmac;
/* if wifi_test = 1, driver will disable the turbo mode and pass it to
 * firmware private.
 */
static int wifi_test;

module_param_string();
module_param(wifi_test, int, 0644);
module_param(initmac, charp, 0644);
module_param(video_mode, int, 0644);
module_param(chip_version, int, 0644);
module_param(rfintfs, int, 0644);
module_param(lbkmode, int, 0644);
module_param(hci, int, 0644);
module_param(network_mode, int, 0644);
module_param(channel, int, 0644);
module_param(mp_mode, int, 0644);
module_param(wmm_enable, int, 0644);
module_param(vrtl_carrier_sense, int, 0644);
module_param(vcs_type, int, 0644);
module_param(busy_thresh, int, 0644);
module_param(ht_enable, int, 0644);
module_param(cbw40_enable, int, 0644);
module_param(ampdu_enable, int, 0644);
module_param(rf_config, int, 0644);
module_param(power_mgnt, int, 0644);
module_param(low_power, int, 0644);

MODULE_PARM_DESC();
MODULE_PARM_DESC();

static int netdev_open(struct net_device *pnetdev);
static int netdev_close(struct net_device *pnetdev);

static void loadparam(struct _adapter *padapter, struct  net_device *pnetdev)
{}

static int r871x_net_set_mac_address(struct net_device *pnetdev, void *p)
{}

static struct net_device_stats *r871x_net_get_stats(struct net_device *pnetdev)
{}

static const struct net_device_ops rtl8712_netdev_ops =;

struct net_device *r8712_init_netdev(void)
{}

static u32 start_drv_threads(struct _adapter *padapter)
{}

void r8712_stop_drv_threads(struct _adapter *padapter)
{}

static void start_drv_timers(struct _adapter *padapter)
{}

void r8712_stop_drv_timers(struct _adapter *padapter)
{}

static void init_default_value(struct _adapter *padapter)
{}

int r8712_init_drv_sw(struct _adapter *padapter)
{}

void r8712_free_drv_sw(struct _adapter *padapter)
{}

static void enable_video_mode(struct _adapter *padapter, int cbw40_value)
{}

/*
 *
 * This function intends to handle the activation of an interface
 * i.e. when it is brought Up/Active from a Down state.
 *
 */
static int netdev_open(struct net_device *pnetdev)
{}

/*
 *
 * This function intends to handle the shutdown of an interface
 * i.e. when it is brought Down from an Up/Active state.
 *
 */
static int netdev_close(struct net_device *pnetdev)
{}

#include "mlme_osdep.h"