From 19dc333eea9963be141db29c5c0dbc783f7a0ecd Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Thu, 17 Jan 2019 01:28:00 +0000 Subject: Enable bwfm(4) in RAMDISK_CD ok deraadt --- sys/dev/pci/if_bwfm_pci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/if_bwfm_pci.c') diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index ff109c17e5b..6d19f7ce6c2 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.27 2018/08/20 18:58:06 patrick Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.28 2019/01/17 01:27:59 mlarkin Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt @@ -1543,7 +1543,9 @@ int bwfm_pci_flowring_lookup(struct bwfm_pci_softc *sc, struct mbuf *m) { struct ieee80211com *ic = &sc->sc_sc.sc_ic; +#ifndef IEEE80211_STA_ONLY uint8_t *da = mtod(m, uint8_t *); +#endif int flowid, prio, fifo; int i, found; @@ -1599,7 +1601,9 @@ bwfm_pci_flowring_create(struct bwfm_pci_softc *sc, struct mbuf *m) { struct ieee80211com *ic = &sc->sc_sc.sc_ic; struct bwfm_cmd_flowring_create cmd; +#ifndef IEEE80211_STA_ONLY uint8_t *da = mtod(m, uint8_t *); +#endif struct bwfm_pci_msgring *ring; int flowid, prio, fifo; int i, found; @@ -1655,7 +1659,9 @@ void bwfm_pci_flowring_create_cb(struct bwfm_softc *bwfm, void *arg) { struct bwfm_pci_softc *sc = (void *)bwfm; +#ifndef IEEE80211_STA_ONLY struct ieee80211com *ic = &sc->sc_sc.sc_ic; +#endif struct bwfm_cmd_flowring_create *cmd = arg; struct msgbuf_tx_flowring_create_req *req; struct bwfm_pci_msgring *ring; -- cgit v1.2.3