bmi.c (dcd169b761d52e3f9122e30442b83863bdf1d9d9) bmi.c (241b128b6b69ad41fc6f12cba45a3c3e64bce673)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 43 unchanged lines hidden (view full) ---

52 }
53
54 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid));
55 if (ret) {
56 ath6kl_err("Unable to send get target info: %d\n", ret);
57 return ret;
58 }
59
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 43 unchanged lines hidden (view full) ---

52 }
53
54 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid));
55 if (ret) {
56 ath6kl_err("Unable to send get target info: %d\n", ret);
57 return ret;
58 }
59
60 ret = ath6kl_hif_bmi_read(ar, (u8 *)&targ_info->version,
61 sizeof(targ_info->version));
60 if (ar->hif_type == ATH6KL_HIF_TYPE_USB) {
61 ret = ath6kl_hif_bmi_read(ar, (u8 *)targ_info,
62 sizeof(*targ_info));
63 } else {
64 ret = ath6kl_hif_bmi_read(ar, (u8 *)&targ_info->version,
65 sizeof(targ_info->version));
66 }
67
62 if (ret) {
63 ath6kl_err("Unable to recv target info: %d\n", ret);
64 return ret;
65 }
66
67 if (le32_to_cpu(targ_info->version) == TARGET_VERSION_SENTINAL) {
68 /* Determine how many bytes are in the Target's targ_info */
69 ret = ath6kl_hif_bmi_read(ar,

--- 472 unchanged lines hidden ---
68 if (ret) {
69 ath6kl_err("Unable to recv target info: %d\n", ret);
70 return ret;
71 }
72
73 if (le32_to_cpu(targ_info->version) == TARGET_VERSION_SENTINAL) {
74 /* Determine how many bytes are in the Target's targ_info */
75 ret = ath6kl_hif_bmi_read(ar,

--- 472 unchanged lines hidden ---