Commit 669adbe6 authored by Mateusz Kulikowski's avatar Mateusz Kulikowski Committed by Greg Kroah-Hartman
Browse files

staging: rtl8192e: Remove dead code



Delete unused code. Removed some macros, enums, unions and several
structures (tx_fwinfo, wmm_tspec, qos_tstream, sta_qos, bss_qos).

Signed-off-by: default avatarMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c1ab2fa9
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
@@ -144,19 +144,6 @@ enum rf_optype {
	RF_OP_MAX
};


enum power_save_mode {
	POWER_SAVE_MODE_ACTIVE,
	POWER_SAVE_MODE_SAVE,
};

enum interface_select_8190pci {
	INTF_SEL1_MINICARD		= 0,
	INTF_SEL0_PCIE			= 1,
	INTF_SEL2_RSV			= 2,
	INTF_SEL3_RSV			= 3,
};

struct bb_reg_definition {
	u32 rfintfs;
	u32 rfintfi;
@@ -178,33 +165,6 @@ struct bb_reg_definition {
	u32 rfLSSIReadBackPi;
};

struct tx_fwinfo {
	u8			TxRate:7;
	u8			CtsEnable:1;
	u8			RtsRate:7;
	u8			RtsEnable:1;
	u8			TxHT:1;
	u8			Short:1;
	u8			TxBandwidth:1;
	u8			TxSubCarrier:2;
	u8			STBC:2;
	u8			AllowAggregation:1;
	u8			RtsHT:1;
	u8			RtsShort:1;
	u8			RtsBandwidth:1;
	u8			RtsSubcarrier:2;
	u8			RtsSTBC:2;
	u8			EnableCPUDur:1;

	u32			RxMF:2;
	u32			RxAMD:3;
	u32			Reserved1:3;
	u32			TxAGCOffset:4;
	u32			TxAGCSign:1;
	u32			Tx_INFO_RSVD:6;
	u32			PacketID:13;
};

struct tx_fwinfo_8190pci {
	u8			TxRate:7;
	u8			CtsEnable:1;
+0 −5
Original line number Diff line number Diff line
@@ -52,11 +52,6 @@ enum firmware_status {
	FW_STATUS_5_READY = 5,
};

struct fw_seg_container {
	u16	seg_size;
	u8	*seg_ptr;
};

struct rt_firmware {
	enum firmware_status firmware_status;
	u16		  cmdpacket_frag_thresold;
+0 −6
Original line number Diff line number Diff line
@@ -23,12 +23,6 @@

#include <linux/types.h>

#define BootArrayLengthPciE 344
extern u8 Rtl8192PciEFwBootArray[BootArrayLengthPciE];
#define MainArrayLengthPciE 43012
extern u8 Rtl8192PciEFwMainArray[MainArrayLengthPciE];
#define DataArrayLengthPciE 848
extern u8 Rtl8192PciEFwDataArray[DataArrayLengthPciE];
#define PHY_REGArrayLengthPciE 1
extern u32 Rtl8192PciEPHY_REGArray[PHY_REGArrayLengthPciE];
#define PHY_REG_1T2RArrayLengthPciE 296
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType,
	    const u8 *MacAddr, u8 DefaultKey, u32 *KeyContent);
void set_swcam(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType,
	       const u8 *MacAddr, u8 DefaultKey, u32 *KeyContent, u8 is_mesh);
void CamPrintDbgReg(struct net_device *dev);

u32 read_cam(struct net_device *dev, u8 addr);
void write_cam(struct net_device *dev, u8 addr, u32 data);
+0 −4
Original line number Diff line number Diff line
@@ -20,11 +20,7 @@
#ifndef R819x_WX_H
#define R819x_WX_H

struct net_device;
struct iw_handler_def;
struct iw_statistics;

extern const struct iw_handler_def r8192_wx_handlers_def;
u16 rtl8192_11n_user_show_rates(struct net_device *dev);

#endif
Loading