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 No need for channel hack to end scan with ...



details:   https://anonhg.NetBSD.org/src-all/rev/e1ef8e15cd12
branches:  trunk
changeset: 939855:e1ef8e15cd12
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 24 19:01:04 2020 +1000

description:
No need for channel hack to end scan with the new stack.

diffstat:

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

diffs (24 lines):

diff -r 40212aab95a5 -r e1ef8e15cd12 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun May 24 19:00:16 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Sun May 24 19:01:04 2020 +1000
@@ -2434,9 +2434,11 @@
 
        rssi = ops->get_rssi(stat);
 
+#if 0
        /* XXX Added for NetBSD: scans never stop without it */
        if (vap->iv_state == IEEE80211_S_SCAN)
                iwn_fix_channel(ic, m, stat);
+#endif
 
        if (sc->sc_drvbpf != NULL) {
                struct iwn_rx_radiotap_header *tap = &sc->sc_rxtap;
@@ -7059,7 +7061,7 @@
  * probe responses. Only used during AP detection.
  * XXX: Duplicated from if_iwi.c
  */
-static void
+static void __unused
 iwn_fix_channel(struct ieee80211com *ic, struct mbuf *m,
     struct iwn_rx_stat *stat)
 {



Home | Main Index | Thread Index | Old Index