Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Fix build.



details:   https://anonhg.NetBSD.org/src-all/rev/dec559e0fc34
branches:  trunk
changeset: 371501:dec559e0fc34
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue Sep 29 22:04:17 2020 +1000

description:
Fix build.

diffstat:

 sys/dev/pci/if_iwn.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 6da02115f2bb -r dec559e0fc34 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun Sep 27 16:26:02 2020 +0200
+++ b/sys/dev/pci/if_iwn.c      Tue Sep 29 22:04:17 2020 +1000
@@ -24,6 +24,12 @@
 #include <sys/cdefs.h>
 __KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.99 2022/04/25 02:29:14 gutteridge Exp $");
 
+#ifdef IWN_DEBUG
+#define DBG_FN 9
+#else
+#define DBG_FN 0
+#endif
+
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
 
@@ -3283,6 +3289,7 @@
 iwn_transmit(struct ieee80211com *ic, struct mbuf *m)
 {
        struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
+       struct iwn_softc *sc = vap->iv_ic->ic_softc;
        int s;
 
        size_t pktlen = m->m_pkthdr.len;
@@ -3309,11 +3316,8 @@
 #if 0
 static int
 iwn_send_mgmt(struct ieee80211_node *ni, int arg1, int arg2) {
-#ifdef IWN_DEBUG
-       // struct ieee80211vap *vap = ni->ni_vap;
-       struct ieee80211com *ic = ni->ni_ic;
-       struct iwn_softc *sc = ic->ic_softc;
-#endif
+
+       struct iwn_softc *sc = ni->ni_vap->iv_ic->ic_softc;
 
        DPRINTFN(3, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
 



Home | Main Index | Thread Index | Old Index