]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Add 11n and QoS methods.
authoradrian <adrian@FreeBSD.org>
Thu, 17 Sep 2015 03:13:01 +0000 (03:13 +0000)
committeradrian <adrian@FreeBSD.org>
Thu, 17 Sep 2015 03:13:01 +0000 (03:13 +0000)
The firmware takes care of ampdu tx/rx (except for RX reordering, grr),
QoS/WME and other bits/pieces.  So they're stubs, just in case.

sys/dev/usb/wlan/if_rsu.c

index 9b1719c90821e31ff0db42516690578f69a6a3b8..18e5b679d12325a6a4c3aaef770bce4b1ac1bbbd 100644 (file)
@@ -305,6 +305,28 @@ rsu_send_mgmt(struct ieee80211_node *ni, int type, int arg)
        return (ENOTSUP);
 }
 
+static void
+rsu_update_chw(struct ieee80211com *ic)
+{
+
+}
+
+static int
+rsu_ampdu_enable(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap)
+{
+
+       /* Firmware handles this; not our problem */
+       return (0);
+}
+
+static int
+rsu_wme_update(struct ieee80211com *ic)
+{
+
+       /* Firmware handles this; not our problem */
+       return (0);
+}
+
 static int
 rsu_attach(device_t self)
 {
@@ -412,6 +434,9 @@ rsu_attach(device_t self)
        ic->ic_parent = rsu_parent;
        ic->ic_transmit = rsu_transmit;
        ic->ic_send_mgmt = rsu_send_mgmt;
+       ic->ic_update_chw = rsu_update_chw;
+       ic->ic_ampdu_enable = rsu_ampdu_enable;
+       ic->ic_wme.wme_update = rsu_wme_update;
 
        ieee80211_radiotap_attach(ic, &sc->sc_txtap.wt_ihdr,
            sizeof(sc->sc_txtap), RSU_TX_RADIOTAP_PRESENT,