ath9k: Fix deadlock while updating p2p beacon timer
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Tue, 27 May 2014 11:28:02 +0000 (16:58 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 May 2014 17:10:28 +0000 (13:10 -0400)
commit60ccc107c9b9fb732fdee1f76bb2dad44f0e1798
tree4afeb78d278cd693ee33cbe8812eaf8bc2d4cb7d
parent52f98a57d8c162feac17adac8b5e31707d2d42fc
ath9k: Fix deadlock while updating p2p beacon timer

pm_lock is taken twice while syncing HW TSF of p2p vif.
Fix this by taking the lock at caller side.

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c