projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 firmware tools: show number of generated frames
[carl9170fw.git]
/
tools
/
lib
/
carlfw.c
diff --git
a/tools/lib/carlfw.c
b/tools/lib/carlfw.c
index 694e8d848a09f11dca33341aadf2d25288a534b0..44897e39ef8ee07a1c0b464a1cc7857f303bb854 100644
(file)
--- a/
tools/lib/carlfw.c
+++ b/
tools/lib/carlfw.c
@@
-190,18
+190,18
@@
static void *__carlfw_find_desc(struct carlfw_file *file,
struct carl9170fw_desc_head *tmp = NULL;
while (scan >= 0) {
struct carl9170fw_desc_head *tmp = NULL;
while (scan >= 0) {
- if (file->data[scan] == descid[
sizeof(descid)
- found - 1])
+ if (file->data[scan] == descid[
CARL9170FW_MAGIC_SIZE
- found - 1])
found++;
else
found = 0;
found++;
else
found = 0;
- if (found ==
sizeof(descid)
)
+ if (found ==
CARL9170FW_MAGIC_SIZE
)
break;
scan--;
}
break;
scan--;
}
- if (found ==
sizeof(descid)
) {
+ if (found ==
CARL9170FW_MAGIC_SIZE
) {
tmp = (void *) &file->data[scan];
if (!CHECK_HDR_VERSION(tmp, compatible_revision) &&
tmp = (void *) &file->data[scan];
if (!CHECK_HDR_VERSION(tmp, compatible_revision) &&
@@
-280,7
+280,7
@@
void carlfw_desc_del(struct carlfw *fw,
}
void *carlfw_desc_mod_len(struct carlfw *fw __unused,
}
void *carlfw_desc_mod_len(struct carlfw *fw __unused,
- struct carl9170fw_desc_head *desc,
in
t len)
+ struct carl9170fw_desc_head *desc,
size_
t len)
{
struct carlfw_list_entry *obj, tmp;
int new_len = le16_to_cpu(desc->length) + len;
{
struct carlfw_list_entry *obj, tmp;
int new_len = le16_to_cpu(desc->length) + len;