From 2601c36dd9f4f1e22f36acbf74d1055d03475f02 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 26 Sep 2015 13:22:28 -0500 Subject: [PATCH] rtl8723bs: Remove rtw_chip_version as module parameter This parameter might be useful when the original driver was developed, but it is useless in production code. Signed-off-by: Larry Finger --- include/drv_types.h | 3 +-- os_dep/os_intfs.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/drv_types.h b/include/drv_types.h index 96c4cfc..e653a6b 100644 --- a/include/drv_types.h +++ b/include/drv_types.h @@ -91,11 +91,10 @@ struct specific_device_id{ }; struct registry_priv { - u8 chip_version; + struct ndis_802_11_ssid ssid; u8 rfintfs; u8 lbkmode; u8 hci; - struct ndis_802_11_ssid ssid; u8 network_mode; /* infra, ad-hoc, auto */ u8 channel;/* ad-hoc support requirement */ u8 wireless_mode;/* A, B, G, auto */ diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index 4162ee2..3581c31 100644 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -43,7 +43,6 @@ MODULE_AUTHOR("Realtek Semiconductor Corp."); MODULE_VERSION(DRIVERVERSION); /* module param defaults */ -static int rtw_chip_version = 0x00; static int rtw_rfintfs = HWPI; static int rtw_lbkmode = 0;/* RTL8712_AIR_TRX; */ @@ -163,7 +162,6 @@ char* rtw_initmac = NULL; /* temp mac address if users want to use instead of module_param(rtw_initmac, charp, 0644); module_param(rtw_channel_plan, int, 0644); -module_param(rtw_chip_version, int, 0644); module_param(rtw_rfintfs, int, 0644); module_param(rtw_lbkmode, int, 0644); module_param(rtw_network_mode, int, 0644); @@ -258,7 +256,6 @@ static uint loadparam( struct adapter *padapter, struct net_device * pnetdev) struct registry_priv *registry_par = &padapter->registrypriv; GlobalDebugLevel = rtw_debug; - registry_par->chip_version = (u8)rtw_chip_version; registry_par->rfintfs = (u8)rtw_rfintfs; registry_par->lbkmode = (u8)rtw_lbkmode; /* registry_par->hci = (u8)hci; */