X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Fsrc%2Fwlantx.c;fp=carlfw%2Fsrc%2Fwlantx.c;h=a8d09522d3619c2d7934d79d74be3dd01414a17c;hp=474c040f46fd3d08a7be28f920526bf459fc1830;hb=001384147050b9cd9daadb4d3115cc0f13f5b319;hpb=84d037cc22b8b5def1d4480016ee2228349303f7 diff --git a/carlfw/src/wlantx.c b/carlfw/src/wlantx.c index 474c040..a8d0952 100644 --- 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; - uint32_t *tsf = (uint32_t *) &mgmt->u.probe_resp.timestamp; + uint32_t tmptsf[2]; /* * 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). */ - read_tsf(tsf); + read_tsf(tmptsf); + memcpy(&mgmt->u.probe_resp.timestamp, tmptsf, sizeof(tmptsf)); } wlan_tx_ampdu(super);