Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/usb Remove run_node_alloc() and sc_sendq
details: https://anonhg.NetBSD.org/src-all/rev/ec63e512f419
branches: trunk
changeset: 375266:ec63e512f419
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Tue Sep 20 18:36:13 2022 +0200
description:
Remove run_node_alloc() and sc_sendq
diffstat:
sys/dev/usb/if_run.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diffs (45 lines):
diff -r ff8ea3c49f91 -r ec63e512f419 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Tue Sep 20 18:31:42 2022 +0200
+++ b/sys/dev/usb/if_run.c Tue Sep 20 18:36:13 2022 +0200
@@ -367,8 +367,6 @@ static const char * run_get_rf(uint16_t)
static void run_rt3593_get_txpower(struct run_softc *);
static void run_get_txpower(struct run_softc *);
static int run_read_eeprom(struct run_softc *);
-static struct ieee80211_node *
- run_node_alloc(struct ieee80211vap *, const uint8_t *);
static int run_media_change(struct ifnet *);
static void run_task(void *);
static void run_do_async(struct run_softc *,
@@ -611,9 +609,6 @@ run_attach(device_t parent, device_t sel
sc->sc_uw.uw_rx_list_cnt = RUN_RX_RING_COUNT;
sc->sc_uw.uw_tx_list_cnt = RUN_TX_RING_COUNT;
- sc->sc_sendq.ifq_maxlen = ifqmaxlen;
- IFQ_LOCK_INIT(&sc->sc_sendq);
-
devinfop = usbd_devinfo_alloc(sc->sc_uw.uw_udev, 0);
aprint_normal_dev(self, "%s\n", devinfop);
usbd_devinfo_free(devinfop);
@@ -749,7 +744,6 @@ run_attach(device_t parent, device_t sel
nrx, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
ic->ic_getradiocaps = run_get_radiocaps;
- ic->ic_node_alloc = run_node_alloc;
ic->ic_newassoc = run_newassoc;
ic->ic_updateslot = run_updateslot;
ic->ic_wme.wme_update = run_updateedca;
@@ -1642,14 +1636,6 @@ run_read_eeprom(struct run_softc *sc)
return 0;
}
-static struct ieee80211_node *
-run_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
-{
- struct run_node *rn =
- malloc(sizeof(struct run_node), M_DEVBUF, M_NOWAIT | M_ZERO);
- return rn ? &rn->ni : NULL;
-}
-
static int
run_media_change(struct ifnet *ifp)
{
Home |
Main Index |
Thread Index |
Old Index