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 Do not override state machine when associa...



details:   https://anonhg.NetBSD.org/src-all/rev/19de69a12eaf
branches:  trunk
changeset: 375564:19de69a12eaf
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 03 22:10:46 2020 +1000

description:
Do not override state machine when associating.

diffstat:

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

diffs (21 lines):

diff -r ada9b1369eeb -r 19de69a12eaf sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 03 22:06:09 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 03 22:10:46 2020 +1000
@@ -6352,13 +6352,15 @@ iwm_do_newstate(struct ieee80211vap *vap
                break;
 
        case IEEE80211_S_ASSOC:
-               in = (struct iwm_node *)vap->iv_bss;
-               err = iwm_newassoc(in, 1);
+               in = vap->iv_bss;
+               iwm_newassoc(in, 1);
+#if 0
                if (err) {
                        DPRINTF(("%s: failed to associate: %d\n", DEVNAME(sc),
                            err));
                        return err;
                }
+#endif
                break;
 
        case IEEE80211_S_RUN:



Home | Main Index | Thread Index | Old Index