]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ath5k: update PCU opmode whenever a new interface is added
authorBob Copeland <me@bobcopeland.com>
Wed, 29 Jul 2009 14:29:03 +0000 (10:29 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:25 +0000 (16:43 -0400)
commitae6f53f25f9803212d1985b5eb5a03111f439c24
tree6906896b6ca8cd95134fcf4ee893160d556c351d
parent57c9fff3d0c5d77bc7910717faeca4e8a018b1ee
ath5k: update PCU opmode whenever a new interface is added

Previously, we would store the operating mode at interface up time,
but only update the PCU registers when the next reset happened.
The result is that if beacon configuration (ops->bss_info_changed)
happens before ops->config, we will program the wrong things into
the timer registers.  Consequently, beacons won't work in AP mode
until after a reset (channel change, scan etc.).

This is fragile anyway so just program the opmode as soon as
mac80211 gives it to us.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c