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 10.1.0
[carl9170fw.git]
/
carlfw
/
src
/
wlantx.c
diff --git
a/carlfw/src/wlantx.c
b/carlfw/src/wlantx.c
index 474c040f46fd3d08a7be28f920526bf459fc1830..a8d09522d3619c2d7934d79d74be3dd01414a17c 100644
(file)
--- a/
carlfw/src/wlantx.c
+++ b/
carlfw/src/wlantx.c
@@
-260,7
+260,7
@@
static void __wlan_tx(struct dma_desc *desc)
if (unlikely(super->s.fill_in_tsf)) {
struct ieee80211_mgmt *mgmt = (void *) &super->f.data.i3e;
if (unlikely(super->s.fill_in_tsf)) {
struct ieee80211_mgmt *mgmt = (void *) &super->f.data.i3e;
- uint32_t
*tsf = (uint32_t *) &mgmt->u.probe_resp.timestamp
;
+ uint32_t
tmptsf[2]
;
/*
* Truth be told: this is a hack.
/*
* Truth be told: this is a hack.
@@
-272,7
+272,8
@@
static void __wlan_tx(struct dma_desc *desc)
* (even, if it's got an accurate atomic clock source).
*/
* (even, if it's got an accurate atomic clock source).
*/
- read_tsf(tsf);
+ read_tsf(tmptsf);
+ memcpy(&mgmt->u.probe_resp.timestamp, tmptsf, sizeof(tmptsf));
}
wlan_tx_ampdu(super);
}
wlan_tx_ampdu(super);