Date: Thu, 17 Sep 2015 03:08:02 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287894 - head/sys/dev/usb/wlan Message-ID: <201509170308.t8H382AD044951@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509170308.t8H382AD044951>