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 Fix iwm_newassoc.



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

description:
Fix iwm_newassoc.

diffstat:

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

diffs (25 lines):

diff -r 4ea056170ed1 -r 2be310923697 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 03 21:49:24 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 03 21:56:29 2020 +1000
@@ -6071,15 +6071,12 @@
 static void
 iwm_newassoc(struct ieee80211_node *ni, int isnew)
 {
-       struct iwm_softc *sc = ni->ni_ic->ic_ifp->if_softc;
-       struct iwm_node *in = (void *)ni;
-       int err;
-
-       err = iwm_add_sta_cmd(sc, in, 1);
-       if (err)
-               return err;
-
-       return 0;
+       struct iwm_softc *sc = ni->ni_ic->ic_softc;
+       struct iwn_node *in = (void *)ni;
+
+       (void)iwm_add_sta_cmd(sc, in, 1);
+
+       return;
 }
 
 static struct ieee80211_node *



Home | Main Index | Thread Index | Old Index