projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 toolchain: update to gcc 9.1.0
[carl9170fw.git]
/
carlfw
/
src
/
hostif.c
diff --git
a/carlfw/src/hostif.c
b/carlfw/src/hostif.c
index 73e89c7137ad237b5712a1f751f49c8421d70fbc..06726dbdf7d9c6e47b9556ef0a550c4b6c61a205 100644
(file)
--- a/
carlfw/src/hostif.c
+++ b/
carlfw/src/hostif.c
@@
-213,10
+213,14
@@
void handle_cmd(struct carl9170_rsp *resp)
fw.reboot = 1;
break;
fw.reboot = 1;
break;
- case CARL9170_CMD_READ_TSF:
+ case CARL9170_CMD_READ_TSF: {
+ uint32_t tmptsf[2];
+
+ read_tsf(tmptsf);
resp->hdr.len = 8;
resp->hdr.len = 8;
-
read_tsf((uint32_t *)resp->tsf.tsf
);
+
memcpy(resp->tsf.tsf, tmptsf, sizeof(tmptsf)
);
break;
break;
+ }
case CARL9170_CMD_RX_FILTER:
resp->hdr.len = 0;
case CARL9170_CMD_RX_FILTER:
resp->hdr.len = 0;