aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2014-09-14 05:50:17 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2014-09-18 03:45:32 -0400
commitaf762c0b0de586937409346d94d1f09035a5e64f (patch)
tree238181664cd1b6619f2633628ed36e0089898017 /drivers/net/wireless/ath/ath10k/wmi.c
parentc6e2e60e858efa8dd92d94f5d442068fb12b9967 (diff)
ath10k: fix missing a blank line after declarations
Fixes checkpatch warnings: WARNING: Missing a blank line after declarations Please note that some of the cases I fixed by moving the variable declarations to the beginning of the function, which is the preferred style in ath10k. 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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index ed438edb9763..6b9f38b8b827 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -612,6 +612,7 @@ static struct wmi_cmd_map wmi_10_2_cmd_map = {
612int ath10k_wmi_wait_for_service_ready(struct ath10k *ar) 612int ath10k_wmi_wait_for_service_ready(struct ath10k *ar)
613{ 613{
614 int ret; 614 int ret;
615
615 ret = wait_for_completion_timeout(&ar->wmi.service_ready, 616 ret = wait_for_completion_timeout(&ar->wmi.service_ready,
616 WMI_SERVICE_READY_TIMEOUT_HZ); 617 WMI_SERVICE_READY_TIMEOUT_HZ);
617 return ret; 618 return ret;
@@ -620,6 +621,7 @@ int ath10k_wmi_wait_for_service_ready(struct ath10k *ar)
620int ath10k_wmi_wait_for_unified_ready(struct ath10k *ar) 621int ath10k_wmi_wait_for_unified_ready(struct ath10k *ar)
621{ 622{
622 int ret; 623 int ret;
624
623 ret = wait_for_completion_timeout(&ar->wmi.unified_ready, 625 ret = wait_for_completion_timeout(&ar->wmi.unified_ready,
624 WMI_UNIFIED_READY_TIMEOUT_HZ); 626 WMI_UNIFIED_READY_TIMEOUT_HZ);
625 return ret; 627 return ret;
@@ -1384,6 +1386,8 @@ static void ath10k_wmi_update_tim(struct ath10k *ar,
1384 struct ieee80211_tim_ie *tim; 1386 struct ieee80211_tim_ie *tim;
1385 u8 *ies, *ie; 1387 u8 *ies, *ie;
1386 u8 ie_len, pvm_len; 1388 u8 ie_len, pvm_len;
1389 __le32 t;
1390 u32 v;
1387 1391
1388 /* if next SWBA has no tim_changed the tim_bitmap is garbage. 1392 /* if next SWBA has no tim_changed the tim_bitmap is garbage.
1389 * we must copy the bitmap upon change and reuse it later */ 1393 * we must copy the bitmap upon change and reuse it later */
@@ -1394,8 +1398,8 @@ static void ath10k_wmi_update_tim(struct ath10k *ar,
1394 sizeof(bcn_info->tim_info.tim_bitmap)); 1398 sizeof(bcn_info->tim_info.tim_bitmap));
1395 1399
1396 for (i = 0; i < sizeof(arvif->u.ap.tim_bitmap); i++) { 1400 for (i = 0; i < sizeof(arvif->u.ap.tim_bitmap); i++) {
1397 __le32 t = bcn_info->tim_info.tim_bitmap[i / 4]; 1401 t = bcn_info->tim_info.tim_bitmap[i / 4];
1398 u32 v = __le32_to_cpu(t); 1402 v = __le32_to_cpu(t);
1399 arvif->u.ap.tim_bitmap[i] = (v >> ((i % 4) * 8)) & 0xFF; 1403 arvif->u.ap.tim_bitmap[i] = (v >> ((i % 4) * 8)) & 0xFF;
1400 } 1404 }
1401 1405