Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Use ic from vap. NFCI.



details:   https://anonhg.NetBSD.org/src-all/rev/8b0f8c2e9aae
branches:  trunk
changeset: 1025329:8b0f8c2e9aae
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Aug 16 10:07:12 2020 +1000

description:
Use ic from vap.  NFCI.

diffstat:

 sys/dev/usb/if_urtwn.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0209f6fd0a90 -r 8b0f8c2e9aae sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun Aug 16 08:33:36 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun Aug 16 10:07:12 2020 +1000
@@ -2317,7 +2317,7 @@
 urtwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
 {
        struct urtwn_softc *sc = vap->iv_ic->ic_softc;
-       struct ieee80211com *ic = &sc->sc_ic;
+       struct ieee80211com *ic = vap->iv_ic;
        struct ieee80211_node *ni;
        enum ieee80211_state ostate = vap->iv_state;
        uint32_t reg;



Home | Main Index | Thread Index | Old Index