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 Enter low power mode on sleep state.



details:   https://anonhg.NetBSD.org/src-all/rev/afd5da30d232
branches:  trunk
changeset: 375794:afd5da30d232
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Aug 07 20:19:36 2022 +1000

description:
Enter low power mode on sleep state.

diffstat:

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

diffs (20 lines):

diff -r d110c3887d93 -r afd5da30d232 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun Aug 07 20:11:57 2022 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun Aug 07 20:19:36 2022 +1000
@@ -2017,7 +2017,7 @@ restart_calib:
                break;
        case IEEE80211_S_SLEEP:
                if (ostate != IEEE80211_S_SLEEP)
-                       power_control(sc, false);
+                       power_control(sc, true);
                /* Start periodic calibration. */
                if (!usbwifi_isdying(&sc->sc_uw))
                        callout_schedule(&sc->sc_calib_to, hz);
@@ -4606,6 +4606,7 @@ urtwn_init(struct usbwifi *uw)
        /* Set default channel. */
        urtwn_set_chan(sc, ic->ic_curchan);
 
+       power_control(sc, false);
 #if 0
        // XXXX can't do that here while core is locked?
        urtwn_wait_async(sc);



Home | Main Index | Thread Index | Old Index