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 Wrap up more ht functions with conditional...



details:   https://anonhg.NetBSD.org/src-all/rev/caf550dbd5da
branches:  trunk
changeset: 367019:caf550dbd5da
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 03 21:29:10 2020 +1000

description:
Wrap up more ht functions with conditional variables for now.

diffstat:

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

diffs (32 lines):

diff -r 2102c3128553 -r caf550dbd5da sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 03 21:28:00 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 03 21:29:10 2020 +1000
@@ -2837,6 +2837,7 @@
        splx(s);
 }
 
+#ifndef IEEE80211_NO_HT
 static void
 iwm_htprot_task(void *arg)
 {
@@ -2866,6 +2867,7 @@
        /* assumes that ni == ic->ic_bss */
        task_add(systq, &sc->htprot_task);
 }
+#endif
 
 static void
 iwm_ba_task(void *arg)
@@ -8414,11 +8416,11 @@
            iwm_ba_task, vap, PRI_NONE, IPL_NET, 0))
                panic("%s: could not create workqueue: blockack",
                    device_xname(self));
-#endif
        if (workqueue_create(&sc->sc_htprowq, "iwmhtpro",
            iwm_htprot_task, vap, PRI_NONE, IPL_NET, 0))
                panic("%s: could not create workqueue: htprot",
                    device_xname(self));
+#endif
 
        iwm_radiotap_attach(sc, vap->iv_ifp);
 



Home | Main Index | Thread Index | Old Index