ath9k: fix incorrect profile type manupulation
authorBala Shanmugam <bkamatch@qca.qualcomm.com>
Mon, 18 Jun 2012 06:06:58 +0000 (11:36 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 19:14:47 +0000 (15:14 -0400)
commit305dd09f8ce05cc8a8cce4e790a6d3d02e5c4f1d
tree7bbb13d62c899fbca9c733d0ab74d456d995b4c1
parent84b60c144cd32db5ca5185405e9b3f84cac9df9a
ath9k: fix incorrect profile type manupulation

Two MCI interrupts are generated while adding A2DP and headset profiles
with different types and same connection handle. While disconnecting,
only one MCI interrupt is generated with last added profile type value
for both profiles.

While adding second profile type decrement first one.

Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mci.c