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 I believe node_alloc is unused with the ph...



details:   https://anonhg.NetBSD.org/src-all/rev/60958993ae43
branches:  trunk
changeset: 949047:60958993ae43
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 24 12:19:45 2020 +1000

description:
I believe node_alloc is unused with the phil-wifi stack.

diffstat:

 sys/dev/pci/if_iwm.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r cd7c5ed5deb5 -r 60958993ae43 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 24 12:17:36 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 24 12:19:45 2020 +1000
@@ -6084,11 +6084,13 @@
        return;
 }
 
+#ifdef notused
 static struct ieee80211_node *
 iwm_node_alloc(struct ieee80211_node_table *nt)
 {
        return malloc(sizeof(struct iwm_node), M_80211_NODE, M_NOWAIT | M_ZERO);
 }
+#endif
 
 static void
 iwm_calib_timeout(void *arg)
@@ -7910,7 +7912,9 @@
        ifp->if_ioctl = iwm_ioctl;
        ieee80211_ifattach(ic);
 
+#ifdef notused
        ic->ic_node_alloc = iwm_node_alloc;
+#endif
 
        /* Override 802.11 state transition machine. */
        sc->sc_newstate = vap->iv_newstate;



Home | Main Index | Thread Index | Old Index