aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2012-06-12 10:48:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-13 14:35:59 -0400
commit2d340ac81e7474535db7a14f35c80b45b02b63a1 (patch)
treebe70580a7971e96d9972c697fe9379c1ed3e1f72 /drivers/net
parente1763d3f3388968d622a340fed711ae16fc1bc11 (diff)
ath9k_hw: remove MCI_STATE_SEND_WLAN_CHANNELS
Add a MCI util function to send wlan channel info to BT. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mci.c25
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mci.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/mci.c2
3 files changed, 11 insertions, 18 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index a021e7474757..3b44ebe3f750 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -1238,22 +1238,6 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type, u32 *p_data)
1238 case MCI_STATE_SEND_WLAN_COEX_VERSION: 1238 case MCI_STATE_SEND_WLAN_COEX_VERSION:
1239 ar9003_mci_send_coex_version_response(ah, true); 1239 ar9003_mci_send_coex_version_response(ah, true);
1240 break; 1240 break;
1241 case MCI_STATE_SEND_WLAN_CHANNELS:
1242 if (p_data) {
1243 if (((mci->wlan_channels[1] & 0xffff0000) ==
1244 (*(p_data + 1) & 0xffff0000)) &&
1245 (mci->wlan_channels[2] == *(p_data + 2)) &&
1246 (mci->wlan_channels[3] == *(p_data + 3)))
1247 break;
1248
1249 mci->wlan_channels[0] = *p_data++;
1250 mci->wlan_channels[1] = *p_data++;
1251 mci->wlan_channels[2] = *p_data++;
1252 mci->wlan_channels[3] = *p_data++;
1253 }
1254 mci->wlan_channels_update = true;
1255 ar9003_mci_send_coex_wlan_channels(ah, true);
1256 break;
1257 case MCI_STATE_SEND_VERSION_QUERY: 1241 case MCI_STATE_SEND_VERSION_QUERY:
1258 ar9003_mci_send_coex_version_query(ah, true); 1242 ar9003_mci_send_coex_version_query(ah, true);
1259 break; 1243 break;
@@ -1453,3 +1437,12 @@ void ar9003_mci_set_bt_version(struct ath_hw *ah, u8 major, u8 minor)
1453 mci->bt_ver_major, mci->bt_ver_minor); 1437 mci->bt_ver_major, mci->bt_ver_minor);
1454} 1438}
1455EXPORT_SYMBOL(ar9003_mci_set_bt_version); 1439EXPORT_SYMBOL(ar9003_mci_set_bt_version);
1440
1441void ar9003_mci_send_wlan_channels(struct ath_hw *ah)
1442{
1443 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1444
1445 mci->wlan_channels_update = true;
1446 ar9003_mci_send_coex_wlan_channels(ah, true);
1447}
1448EXPORT_SYMBOL(ar9003_mci_send_wlan_channels);
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.h b/drivers/net/wireless/ath/ath9k/ar9003_mci.h
index d4e7739b89ff..05f42a98aeac 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.h
@@ -201,7 +201,6 @@ enum mci_state_type {
201 MCI_STATE_CONT_TXRX, 201 MCI_STATE_CONT_TXRX,
202 MCI_STATE_RESET_REQ_WAKE, 202 MCI_STATE_RESET_REQ_WAKE,
203 MCI_STATE_SEND_WLAN_COEX_VERSION, 203 MCI_STATE_SEND_WLAN_COEX_VERSION,
204 MCI_STATE_SEND_WLAN_CHANNELS,
205 MCI_STATE_SEND_VERSION_QUERY, 204 MCI_STATE_SEND_VERSION_QUERY,
206 MCI_STATE_SEND_STATUS_QUERY, 205 MCI_STATE_SEND_STATUS_QUERY,
207 MCI_STATE_NEED_FLUSH_BT_INFO, 206 MCI_STATE_NEED_FLUSH_BT_INFO,
@@ -263,6 +262,7 @@ void ar9003_mci_get_interrupt(struct ath_hw *ah, u32 *raw_intr,
263 u32 *rx_msg_intr); 262 u32 *rx_msg_intr);
264u32 ar9003_mci_get_next_gpm_offset(struct ath_hw *ah, bool first, u32 *more); 263u32 ar9003_mci_get_next_gpm_offset(struct ath_hw *ah, bool first, u32 *more);
265void ar9003_mci_set_bt_version(struct ath_hw *ah, u8 major, u8 minor); 264void ar9003_mci_set_bt_version(struct ath_hw *ah, u8 major, u8 minor);
265void ar9003_mci_send_wlan_channels(struct ath_hw *ah);
266/* 266/*
267 * These functions are used by ath9k_hw. 267 * These functions are used by ath9k_hw.
268 */ 268 */
diff --git a/drivers/net/wireless/ath/ath9k/mci.c b/drivers/net/wireless/ath/ath9k/mci.c
index 6f4188a32ff0..dbc8e1dabad1 100644
--- a/drivers/net/wireless/ath/ath9k/mci.c
+++ b/drivers/net/wireless/ath/ath9k/mci.c
@@ -312,7 +312,7 @@ static void ath_mci_msg(struct ath_softc *sc, u8 opcode, u8 *rx_payload)
312 ar9003_mci_set_bt_version(ah, major, minor); 312 ar9003_mci_set_bt_version(ah, major, minor);
313 break; 313 break;
314 case MCI_GPM_COEX_STATUS_QUERY: 314 case MCI_GPM_COEX_STATUS_QUERY:
315 ar9003_mci_state(ah, MCI_STATE_SEND_WLAN_CHANNELS, NULL); 315 ar9003_mci_send_wlan_channels(ah);
316 break; 316 break;
317 case MCI_GPM_COEX_BT_PROFILE_INFO: 317 case MCI_GPM_COEX_BT_PROFILE_INFO:
318 memcpy(&profile_info, 318 memcpy(&profile_info,