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/4813c7029d13
branches:  trunk
changeset: 940493:4813c7029d13
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 182de1dbe694 -r 4813c7029d13 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.90.2.3 2020/04/13 08:04:26 martin 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 */
 
@@ -3210,6 +3216,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;
@@ -3236,11 +3243,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(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
 



Home | Main Index | Thread Index | Old Index