svn commit: r287894 - head/sys/dev/usb/wlan
Adrian Chadd
adrian at FreeBSD.org
Thu Sep 17 03:08:03 UTC 2015
Author: adrian
Date: Thu Sep 17 03:08:02 2015
New Revision: 287894
URL: https://svnweb.freebsd.org/changeset/base/287894
Log:
Prepare for 11n - get the number of endpoints and whether 11n is available.
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 Thu Sep 17 03:01:55 2015 (r287893)
+++ head/sys/dev/usb/wlan/if_rsu.c Thu Sep 17 03:08:02 2015 (r287894)
@@ -313,10 +313,16 @@ rsu_attach(device_t self)
struct ieee80211com *ic = &sc->sc_ic;
int error;
uint8_t iface_index, bands;
+ struct usb_interface *iface;
device_set_usb_desc(self);
sc->sc_udev = uaa->device;
sc->sc_dev = self;
+ sc->sc_ht = !! (USB_GET_DRIVER_INFO(uaa) & RSU_HT_SUPPORTED);
+
+ /* Get number of endpoints */
+ iface = usbd_get_iface(sc->sc_udev, 0);
+ sc->sc_nendpoints = iface->idesc->bNumEndpoints;
mtx_init(&sc->sc_mtx, device_get_nameunit(self), MTX_NETWORK_LOCK,
MTX_DEF);
Modified: head/sys/dev/usb/wlan/if_rsureg.h
==============================================================================
--- head/sys/dev/usb/wlan/if_rsureg.h Thu Sep 17 03:01:55 2015 (r287893)
+++ head/sys/dev/usb/wlan/if_rsureg.h Thu Sep 17 03:08:02 2015 (r287894)
@@ -736,6 +736,8 @@ struct rsu_softc {
struct timeout_task calib_task;
const uint8_t *qid2idx;
struct mtx sc_mtx;
+ int sc_ht;
+ int sc_nendpoints;
u_int sc_running:1,
sc_calibrating:1,
More information about the svn-src-all
mailing list