ath9k: simplify btcoex profile management
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Mon, 11 Jun 2012 06:49:36 +0000 (12:19 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jun 2012 18:35:55 +0000 (14:35 -0400)
commit9e2e0c84699ce7adeddb5cd5763956493ca7d331
treee66228b87b3f8cd704cdd577007444f1a47c5f05
parent92a33298e9a329d4bed9f723811c5bedc7d92b9c
ath9k: simplify btcoex profile management

This patch simplifies profile management utility functions.

* Separate find_profile from add/del functions
* Return correct values when the profile list is empty or
  profile is ot found
* flush the profiles when there are entries in the list

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