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/209164a08a68
branches: trunk
changeset: 370593:209164a08a68
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 b63d3625b63a -r 209164a08a68 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 @@
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 @@
/* 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