projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: mesh gate implementation
[carl9170fw.git]
/
tools
/
carlu
/
src
/
fw.c
diff --git
a/tools/carlu/src/fw.c
b/tools/carlu/src/fw.c
index cea5bba02716e73a8ba59c2d24ca3485734c3fad..fa4b38819d3f6004befea31182c2353b03c08686 100644
(file)
--- a/
tools/carlu/src/fw.c
+++ b/
tools/carlu/src/fw.c
@@
-1,9
+1,9
@@
/*
/*
- * carl
9170user
- userspace testing utility for ar9170 devices
+ * carl
u
- userspace testing utility for ar9170 devices
*
* Firmware parsers
*
*
* Firmware parsers
*
- * Copyright 2009
, 2010
Christian Lamparter <chunkeey@googlemail.com>
+ * Copyright 2009
-2011
Christian Lamparter <chunkeey@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-65,11
+65,11
@@
int carlu_fw_check(struct carlu *ar)
return 0;
}
return 0;
}
-int carlusb_fw_check(struct carlu
sb
*ar)
+int carlusb_fw_check(struct carlu *ar)
{
struct carl9170fw_otus_desc *otus_desc;
{
struct carl9170fw_otus_desc *otus_desc;
- otus_desc = carlfw_find_desc(ar->
common.
fw, (uint8_t *) OTUS_MAGIC,
+ otus_desc = carlfw_find_desc(ar->fw, (uint8_t *) OTUS_MAGIC,
sizeof(*otus_desc),
CARL9170FW_OTUS_DESC_CUR_VER);
sizeof(*otus_desc),
CARL9170FW_OTUS_DESC_CUR_VER);
@@
-90,20
+90,20
@@
int carlusb_fw_check(struct carlusb *ar)
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_DOWN_STREAM)) {
dbg("Enabled tx stream mode.\n");
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_DOWN_STREAM)) {
dbg("Enabled tx stream mode.\n");
- ar->
common.
tx_stream = true;
- ar->
common.
extra_headroom = sizeof(struct ar9170_stream);
+ ar->tx_stream = true;
+ ar->extra_headroom = sizeof(struct ar9170_stream);
}
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_UP_STREAM)) {
dbg("Enabled rx stream mode.\n");
}
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_UP_STREAM)) {
dbg("Enabled rx stream mode.\n");
- ar->
common.
rx_stream = true;
+ ar->rx_stream = true;
}
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_RESP_EP2))
dbg("Firmware sends traps over EP2.\n");
}
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_USB_RESP_EP2))
dbg("Firmware sends traps over EP2.\n");
- ar->
common.
dma_chunk_size = le16_to_cpu(otus_desc->tx_frag_len);
- ar->
common.
dma_chunks = otus_desc->tx_descs;
+ ar->dma_chunk_size = le16_to_cpu(otus_desc->tx_frag_len);
+ ar->dma_chunks = otus_desc->tx_descs;
ar->rx_max = le16_to_cpu(otus_desc->rx_max_frame_len);
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_MINIBOOT))
ar->rx_max = le16_to_cpu(otus_desc->rx_max_frame_len);
if (carl9170fw_supports(otus_desc->feature_set, CARL9170FW_MINIBOOT))