[ath] fix "doing stuff before wakeup" warning; add comments for ACK/CTS handling...
authoradrian <adrian@FreeBSD.org>
Fri, 27 Jan 2017 01:17:00 +0000 (01:17 +0000)
committeradrian <adrian@FreeBSD.org>
Fri, 27 Jan 2017 01:17:00 +0000 (01:17 +0000)
commitde52cb34fe9efb244e0eb4629c79ac851af4f4df
tree88220bd983c072ca29f06626752981400ce09bb5
parent57369a8d3d8cc5c42725919175a780fc24977e0b
[ath] fix "doing stuff before wakeup" warning; add comments for ACK/CTS handling during DFS/PASSIVE channels

* Although the hardware is awake, the power state handling doesn't think so.
  So just explicitly wake it up early in setup so ath_hal calls don't complain.

* We shouldn't be transmitting or ACKing frames during DFS CAC or on passive
  channels before we hear a beacon.  So, start laying down comments in the
  places where this work has to be done.

Note:

* The main bit missing from finishing this particular bit of work is a state
  call to transition a VAP from passive to non-passive when a beacon is heard.
  CAC is easy, it's an interface state.  So, I'll go and add a method to control
  that soon.
sys/dev/ath/if_ath.c