diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-11-27 04:11:17 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-12-01 02:09:28 -0500 |
commit | acfe7ecfa40dece73e3dcdc2f606a87988b1472c (patch) | |
tree | 03b850ef33e7072ea854977061da7aaa8e9b7384 /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | 37b9f933e0a82dcf61eb692d99d7106395b8e50f (diff) |
ath10k: make wmi service bitmap non-debug
The service bitmap can be used to determine
firmware capabilities.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 81ccc2eda47e..c0f3e4d09263 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2511,16 +2511,17 @@ static void ath10k_wmi_event_service_ready(struct ath10k *ar, | |||
2511 | { | 2511 | { |
2512 | struct wmi_svc_rdy_ev_arg arg = {}; | 2512 | struct wmi_svc_rdy_ev_arg arg = {}; |
2513 | u32 num_units, req_id, unit_size, num_mem_reqs, num_unit_info, i; | 2513 | u32 num_units, req_id, unit_size, num_mem_reqs, num_unit_info, i; |
2514 | DECLARE_BITMAP(svc_bmap, WMI_SERVICE_MAX) = {}; | ||
2515 | int ret; | 2514 | int ret; |
2516 | 2515 | ||
2516 | memset(&ar->wmi.svc_map, 0, sizeof(ar->wmi.svc_map)); | ||
2517 | |||
2517 | if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) { | 2518 | if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) { |
2518 | ret = ath10k_wmi_10x_pull_svc_rdy_ev(skb, &arg); | 2519 | ret = ath10k_wmi_10x_pull_svc_rdy_ev(skb, &arg); |
2519 | wmi_10x_svc_map(arg.service_map, svc_bmap, | 2520 | wmi_10x_svc_map(arg.service_map, ar->wmi.svc_map, |
2520 | arg.service_map_len); | 2521 | arg.service_map_len); |
2521 | } else { | 2522 | } else { |
2522 | ret = ath10k_wmi_main_pull_svc_rdy_ev(skb, &arg); | 2523 | ret = ath10k_wmi_main_pull_svc_rdy_ev(skb, &arg); |
2523 | wmi_main_svc_map(arg.service_map, svc_bmap, | 2524 | wmi_main_svc_map(arg.service_map, ar->wmi.svc_map, |
2524 | arg.service_map_len); | 2525 | arg.service_map_len); |
2525 | } | 2526 | } |
2526 | 2527 | ||
@@ -2543,7 +2544,6 @@ static void ath10k_wmi_event_service_ready(struct ath10k *ar, | |||
2543 | ar->num_rf_chains = __le32_to_cpu(arg.num_rf_chains); | 2544 | ar->num_rf_chains = __le32_to_cpu(arg.num_rf_chains); |
2544 | ar->ath_common.regulatory.current_rd = __le32_to_cpu(arg.eeprom_rd); | 2545 | ar->ath_common.regulatory.current_rd = __le32_to_cpu(arg.eeprom_rd); |
2545 | 2546 | ||
2546 | ath10k_debug_read_service_map(ar, svc_bmap, sizeof(svc_bmap)); | ||
2547 | ath10k_dbg_dump(ar, ATH10K_DBG_WMI, NULL, "wmi svc: ", | 2547 | ath10k_dbg_dump(ar, ATH10K_DBG_WMI, NULL, "wmi svc: ", |
2548 | arg.service_map, arg.service_map_len); | 2548 | arg.service_map, arg.service_map_len); |
2549 | 2549 | ||