Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2016 14:26:58 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309479 - head/sys/dev/usb/wlan
Message-ID:  <201612031426.uB3EQwTk041562@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Sat Dec  3 14:26:58 2016
New Revision: 309479
URL: https://svnweb.freebsd.org/changeset/base/309479

Log:
  rsu: remove unused structures / variables.

Modified:
  head/sys/dev/usb/wlan/if_rsu.c
  head/sys/dev/usb/wlan/if_rsureg.h

Modified: head/sys/dev/usb/wlan/if_rsu.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rsu.c	Sat Dec  3 05:29:35 2016	(r309478)
+++ head/sys/dev/usb/wlan/if_rsu.c	Sat Dec  3 14:26:58 2016	(r309479)
@@ -2937,9 +2937,6 @@ rsu_init(struct rsu_softc *sc)
 	/* Ensure the mbuf queue is drained */
 	rsu_drain_mbufq(sc);
 
-	/* Init host async commands ring. */
-	sc->cmdq.cur = sc->cmdq.next = sc->cmdq.queued = 0;
-
 	/* Reset power management state. */
 	rsu_write_1(sc, R92S_USB_HRPWM, 0);
 

Modified: head/sys/dev/usb/wlan/if_rsureg.h
==============================================================================
--- head/sys/dev/usb/wlan/if_rsureg.h	Sat Dec  3 05:29:35 2016	(r309478)
+++ head/sys/dev/usb/wlan/if_rsureg.h	Sat Dec  3 14:26:58 2016	(r309479)
@@ -625,8 +625,6 @@ struct r92s_add_ba_req {
 #define RSU_RX_LIST_COUNT	100
 #define RSU_TX_LIST_COUNT	32
 
-#define RSU_HOST_CMD_RING_COUNT	32
-
 #define RSU_RXBUFSZ	(8 * 1024)
 #define RSU_TXBUFSZ	\
 	((sizeof(struct r92s_tx_desc) + IEEE80211_MAX_LEN + 3) & ~3)
@@ -700,27 +698,6 @@ struct rsu_tx_radiotap_header {
 
 struct rsu_softc;
 
-struct rsu_host_cmd {
-	void	(*cb)(struct rsu_softc *, void *);
-	uint8_t	data[256];
-};
-
-struct rsu_cmd_newstate {
-	enum ieee80211_state	state;
-	int			arg;
-};
-
-struct rsu_cmd_key {
-	struct ieee80211_key	key;
-};
-
-struct rsu_host_cmd_ring {
-	struct rsu_host_cmd	cmd[RSU_HOST_CMD_RING_COUNT];
-	int			cur;
-	int			next;
-	int			queued;
-};
-
 enum {
 	RSU_BULK_RX,
 	RSU_BULK_TX_BE_BK,	/* = WME_AC_BE/BK */
@@ -755,12 +732,9 @@ struct rsu_softc {
 	struct mbufq			sc_snd;
 	device_t			sc_dev;
 	struct usb_device		*sc_udev;
-	int				(*sc_newstate)(struct ieee80211com *,
-					    enum ieee80211_state, int);
-	struct usbd_interface		*sc_iface;
+
 	struct timeout_task		calib_task;
 	struct task			tx_task;
-	const uint8_t			*qid2idx;
 	struct mtx			sc_mtx;
 	int				sc_ht;
 	int				sc_nendpoints;
@@ -775,10 +749,8 @@ struct rsu_softc {
 	uint8_t				sc_rftype;
 	int8_t				sc_nrxstream;
 	int8_t				sc_ntxstream;
-	struct rsu_host_cmd_ring	cmdq;
 	struct rsu_data			sc_rx[RSU_RX_LIST_COUNT];
 	struct rsu_data			sc_tx[RSU_TX_LIST_COUNT];
-	struct rsu_data			*fwcmd_data;
 	uint8_t				cmd_seq;
 	uint8_t				rom[128];
 	struct usb_xfer			*sc_xfer[RSU_N_TRANSFER];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031426.uB3EQwTk041562>