git: wlan/atheros - Synchronize sleep state code from FreeBSD

Matthew Dillon dillon at crater.dragonflybsd.org
Sat May 3 14:32:26 PDT 2014


commit d98a0bcf56cb1796ee67614a3ca0c005424745ef
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat May 3 14:25:53 2014 -0700

    wlan/atheros - Synchronize sleep state code from FreeBSD
    
    * Synchronize Adrian Chadd's sleep state code and wlan updates.
    
    * With this commit if the wlan or ath interface is in a 'down' state,
      it will use full sleep mode and save power.
    
    * We get all of ATH through today but the 802_11 changes are a bit
      too substantial so this commit only brings in the sleep state code
      through today (3-May-2014).
    
    * There is a bunch of other 802_11 work that needs to be brought in
      but it's like 20,000 lines of patches so... not today.
    
    * Verified operational on Acer C720 chromebook.  full-sleep mode saves
      0.3-0.4W.  Network sleep mode code is also verified to be operational
      but does not appear to save any power at the moment.
    
      Also verified: beacons are working properly for wakeups on packet
      reception.

Summary of changes:
 sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c |   4 +
 .../dev/ath/ath_hal/ar9300/ar9300_freebsd.c        |   6 +
 sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c  |  18 +-
 sys/dev/netif/ath/ath/if_ath.c                     | 482 +++++++++++++++++++--
 sys/dev/netif/ath/ath/if_ath_beacon.c              |  83 +++-
 sys/dev/netif/ath/ath/if_ath_beacon.h              |   1 +
 sys/dev/netif/ath/ath/if_ath_debug.h               |   1 +
 sys/dev/netif/ath/ath/if_ath_keycache.c            |  12 +-
 sys/dev/netif/ath/ath/if_ath_led.c                 |   4 +
 sys/dev/netif/ath/ath/if_ath_misc.h                |  13 +
 sys/dev/netif/ath/ath/if_ath_rx.c                  | 109 ++++-
 sys/dev/netif/ath/ath/if_ath_rx_edma.c             |  26 +-
 sys/dev/netif/ath/ath/if_ath_sysctl.c              |   2 +
 sys/dev/netif/ath/ath/if_ath_tx.c                  | 414 ++++++++++++------
 sys/dev/netif/ath/ath/if_athvar.h                  |  23 +-
 sys/dev/netif/ath/ath_hal/ah.c                     |   2 +
 sys/dev/netif/ath/ath_hal/ah.h                     |   5 +
 sys/dev/netif/ath/ath_hal/ah_internal.h            |   3 +-
 sys/dev/netif/ath/ath_hal/ah_osdep.c               |  46 ++
 sys/dev/netif/ath/ath_hal/ah_regdomain.c           |   5 +
 .../netif/ath/ath_hal/ah_regdomain/ah_rd_regenum.h |   1 +
 sys/dev/netif/ath/ath_hal/ar5210/ar5210.h          |   3 +-
 sys/dev/netif/ath/ath_hal/ar5210/ar5210_attach.c   |   2 +-
 sys/dev/netif/ath/ath_hal/ar5210/ar5210_misc.c     |   1 +
 sys/dev/netif/ath/ath_hal/ar5210/ar5210_power.c    |  12 +-
 sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c    |   4 +
 sys/dev/netif/ath/ath_hal/ar5211/ar5211.h          |   1 -
 sys/dev/netif/ath/ath_hal/ar5211/ar5211_power.c    |  12 +-
 sys/dev/netif/ath/ath_hal/ar5212/ar5212.h          |   1 -
 sys/dev/netif/ath/ath_hal/ar5212/ar5212_power.c    |  10 +-
 sys/dev/netif/ath/ath_hal/ar5312/ar5312_power.c    |   5 +-
 sys/dev/netif/ath/ath_hal/ar5416/ar5416_attach.c   |   5 +
 sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c   |  26 ++
 .../netif/ath/ath_hal/ar5416/ar5416_interrupts.c   |   3 +
 sys/dev/netif/ath/ath_hal/ar5416/ar5416_power.c    |  13 +-
 sys/dev/netif/ath/ath_hal/ar5416/ar5416reg.h       |   4 +-
 sys/netproto/802_11/ieee80211_power.h              |   3 +
 sys/netproto/802_11/ieee80211_proto.h              |   2 +
 sys/netproto/802_11/ieee80211_var.h                |   3 +
 sys/netproto/802_11/wlan/ieee80211.c               |   3 +-
 sys/netproto/802_11/wlan/ieee80211_ioctl.c         |  14 +-
 sys/netproto/802_11/wlan/ieee80211_output.c        |  29 +-
 sys/netproto/802_11/wlan/ieee80211_power.c         |  87 ++++
 sys/netproto/802_11/wlan/ieee80211_proto.c         |   4 +-
 sys/netproto/802_11/wlan/ieee80211_sta.c           |  59 ++-
 45 files changed, 1328 insertions(+), 238 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d98a0bcf56cb1796ee67614a3ca0c005424745ef


-- 
DragonFly BSD source repository



More information about the Commits mailing list