wlan/atheros - Synchronize sleep state code from FreeBSD
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 3 May 2014 21:25:53 +0000 (14:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 3 May 2014 21:32:19 +0000 (14:32 -0700)
commitd98a0bcf56cb1796ee67614a3ca0c005424745ef
tree951b7806bcfa742e4353817a89ca4c451950fd95
parentf65fe554908cb8daf38e13377cc1069efb757766
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.
45 files changed:
sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c
sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c
sys/dev/netif/ath/ath/if_ath.c
sys/dev/netif/ath/ath/if_ath_beacon.c
sys/dev/netif/ath/ath/if_ath_beacon.h
sys/dev/netif/ath/ath/if_ath_debug.h
sys/dev/netif/ath/ath/if_ath_keycache.c
sys/dev/netif/ath/ath/if_ath_led.c
sys/dev/netif/ath/ath/if_ath_misc.h
sys/dev/netif/ath/ath/if_ath_rx.c
sys/dev/netif/ath/ath/if_ath_rx_edma.c
sys/dev/netif/ath/ath/if_ath_sysctl.c
sys/dev/netif/ath/ath/if_ath_tx.c
sys/dev/netif/ath/ath/if_athvar.h
sys/dev/netif/ath/ath_hal/ah.c
sys/dev/netif/ath/ath_hal/ah.h
sys/dev/netif/ath/ath_hal/ah_internal.h
sys/dev/netif/ath/ath_hal/ah_osdep.c
sys/dev/netif/ath/ath_hal/ah_regdomain.c
sys/dev/netif/ath/ath_hal/ah_regdomain/ah_rd_regenum.h
sys/dev/netif/ath/ath_hal/ar5210/ar5210.h
sys/dev/netif/ath/ath_hal/ar5210/ar5210_attach.c
sys/dev/netif/ath/ath_hal/ar5210/ar5210_misc.c
sys/dev/netif/ath/ath_hal/ar5210/ar5210_power.c
sys/dev/netif/ath/ath_hal/ar5210/ar5210_reset.c
sys/dev/netif/ath/ath_hal/ar5211/ar5211.h
sys/dev/netif/ath/ath_hal/ar5211/ar5211_power.c
sys/dev/netif/ath/ath_hal/ar5212/ar5212.h
sys/dev/netif/ath/ath_hal/ar5212/ar5212_power.c
sys/dev/netif/ath/ath_hal/ar5312/ar5312_power.c
sys/dev/netif/ath/ath_hal/ar5416/ar5416_attach.c
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
sys/dev/netif/ath/ath_hal/ar5416/ar5416_interrupts.c
sys/dev/netif/ath/ath_hal/ar5416/ar5416_power.c
sys/dev/netif/ath/ath_hal/ar5416/ar5416reg.h
sys/netproto/802_11/ieee80211_power.h
sys/netproto/802_11/ieee80211_proto.h
sys/netproto/802_11/ieee80211_var.h
sys/netproto/802_11/wlan/ieee80211.c
sys/netproto/802_11/wlan/ieee80211_ioctl.c
sys/netproto/802_11/wlan/ieee80211_output.c
sys/netproto/802_11/wlan/ieee80211_power.c
sys/netproto/802_11/wlan/ieee80211_proto.c
sys/netproto/802_11/wlan/ieee80211_sta.c