ath9k: fix beacon restart on channel change
commit1186488b4a4d4871e40cb1604ba3ede3d4b7cc90
authorRajkumar Manoharan <rmanoharan@atheros.com>
Thu, 30 Dec 2010 13:37:44 +0000 (30 19:07 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:43:01 +0000 (4 14:43 -0500)
treea1a6290109f95c5fa570fb7615ab7993723c3db4
parentbd8027a72a1af95efd1dc8ea6df2fd9724c885b2
ath9k: fix beacon restart on channel change

Restart the beacon timers only if the beacon
was already configured. Otherwise beacons timers
are restarted unnecessarily in unassociated state too.

Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c