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 Adapt iwn to the new if/ic split.



details:   https://anonhg.NetBSD.org/src-all/rev/c7cca0c5aeb7
branches:  trunk
changeset: 1025820:c7cca0c5aeb7
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Oct 04 18:49:02 2020 +1100

description:
Adapt iwn to the new if/ic split.

diffstat:

 sys/dev/pci/if_iwn.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (33 lines):

diff -r 7bb46772461d -r c7cca0c5aeb7 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun Oct 04 18:47:49 2020 +1100
+++ b/sys/dev/pci/if_iwn.c      Sun Oct 04 18:49:02 2020 +1100
@@ -797,20 +797,6 @@
        /* XXX NetBSD add call to ieee80211_announce for dmesg. */
 
        sc->sc_flags |= IWN_FLAG_ATTACHED;
-       struct ieee80211vap *vap =
-            iwn_vap_create(ic, device_xname(sc->sc_dev),
-                device_unit(sc->sc_dev), IEEE80211_M_STA,
-                IEEE80211_CLONE_MACADDR, ic->ic_macaddr, ic->ic_macaddr);
-
-        if (vap == NULL) {
-                /* Didn't work ... now what! */
-                printf ("NNN vap_create didn't work ...\n");
-               return 0;
-       }
-
-       iwn_radiotap_attach(sc, vap->iv_ifp);
-
-       callout_setfunc(&sc->scan_to, iwn_next_scan, vap);
 #if 0
        if (pmf_device_register(self, NULL, iwn_resume))
                pmf_class_network_register(self, vap->iv_ifp);
@@ -1018,6 +1004,8 @@
 
        ieee80211_init(ifp);
 
+       iwn_radiotap_attach(sc, vap->iv_ifp);
+
        return vap;
 }
 



Home | Main Index | Thread Index | Old Index