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 Avoid reseting the hw_state unnecessarily.



details:   https://anonhg.NetBSD.org/src-all/rev/697a14596a63
branches:  trunk
changeset: 1027090:697a14596a63
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Jan 17 04:09:16 2021 +1100

description:
Avoid reseting the hw_state unnecessarily.

With this chnange interrupts continue to run and iwn(4) now produces scan
results.

At this staage iwm(4) may associate - need to test further.

diffstat:

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

diffs (12 lines):

diff -r f594806cb7c7 -r 697a14596a63 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Sun Jan 17 04:06:39 2021 +1100
+++ b/sys/dev/pci/if_iwm.c      Sun Jan 17 04:09:16 2021 +1100
@@ -6316,8 +6316,6 @@
 
                iwm_stop_device(sc);
                iwm_init_hw(sc);
-       } else if (ostate == IEEE80211_S_INIT) {
-               iwm_init_hw(sc);
        }
 
        switch (nstate) {



Home | Main Index | Thread Index | Old Index