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 Fix up setting media to auto.



details:   https://anonhg.NetBSD.org/src-all/rev/e26d0c7f2780
branches:  trunk
changeset: 374878:e26d0c7f2780
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 03 23:31:50 2020 +1000

description:
Fix up setting media to auto.

diffstat:

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

diffs (15 lines):

diff -r fba09f3b579e -r e26d0c7f2780 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun May 03 22:40:36 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun May 03 23:31:50 2020 +1000
@@ -5793,9 +5793,9 @@ urtwn_init(struct ifnet *ifp)
            ic->ic_channels);
        ieee80211_chan_init(ic);
        ieee80211_media_status(ifp, &imr);
+       imr.ifm_active &= ~(IFM_MMASK | IFM_IEEE80211_TURBO);
        imr.ifm_active |= IFM_AUTO;
-       ifmedia_set(&vap->iv_media,
-           imr.ifm_active &~ (IFM_MMASK | IFM_IEEE80211_TURBO));
+       ifmedia_set(&vap->iv_media, imr.ifm_active);
 
        /* Init the rest of the 802.11 stuff */
        ieee80211_init(ifp);



Home | Main Index | Thread Index | Old Index