Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314792
b: refs/heads/master
c: 305dd09
h: refs/heads/master
v: v3
  • Loading branch information
Bala Shanmugam authored and John W. Linville committed Jun 20, 2012
1 parent 38b149e commit 85e9320
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84b60c144cd32db5ca5185405e9b3f84cac9df9a
refs/heads/master: 305dd09f8ce05cc8a8cce4e790a6d3d02e5c4f1d
15 changes: 14 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,21 @@ static void ath_mci_process_profile(struct ath_softc *sc,
struct ath_mci_profile_info *entry = NULL;

entry = ath_mci_find_profile(mci, info);
if (entry)
if (entry) {
/*
* Two MCI interrupts are generated while connecting to
* headset and A2DP profile, but only one MCI interrupt
* is generated with last added profile type while disconnecting
* both profiles.
* So while adding second profile type decrement
* the first one.
*/
if (entry->type != info->type) {
DEC_PROF(mci, entry);
INC_PROF(mci, info);
}
memcpy(entry, info, 10);
}

if (info->start) {
if (!entry && !ath_mci_add_profile(common, mci, info))
Expand Down

0 comments on commit 85e9320

Please sign in to comment.