Dan Carpenter 461cf03605 ath9k: Fix a locking bug in ath9k_add_interface()
We tried to revert commit d9c52fd17cb4 ("ath9k: fix tx99 with monitor
mode interface") but accidentally missed part of the locking change.

The lock has to be held earlier so that we're holding it when we do
"sc->tx99_vif = vif;" and also there in the current code there is a
stray unlock before we have taken the lock.

Fixes: 6df0580be8bc ("ath9k: add back support for using active monitor interfaces for tx99")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-11-06 18:43:30 +02:00
..
2018-10-13 20:27:35 +03:00
2018-06-29 14:44:49 +03:00
2018-10-13 20:27:35 +03:00
2018-10-13 20:27:35 +03:00
2017-05-19 10:57:55 +03:00
2017-10-27 16:54:19 +03:00
2018-06-29 14:44:49 +03:00
2018-01-16 16:29:22 +02:00
2017-09-25 10:13:58 +03:00
2018-10-13 20:27:35 +03:00
2018-01-16 16:29:22 +02:00
2018-10-13 20:27:35 +03:00