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/f7a6e2b1cccf
branches:  trunk
changeset: 950721:f7a6e2b1cccf
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 0d62f1056361 -r f7a6e2b1cccf 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