X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fcarlfw%2Fsrc%2Fwlantx.c;fp=carl9170fw%2Fcarlfw%2Fsrc%2Fwlantx.c;h=a8d09522d3619c2d7934d79d74be3dd01414a17c;hp=474c040f46fd3d08a7be28f920526bf459fc1830;hb=c164bf7f87f9081fee7e1a186dd7a87a9a020b9e;hpb=433d155289c51dfb1957e48310c90116ea39989a diff --git a/carl9170fw/carlfw/src/wlantx.c b/carl9170fw/carlfw/src/wlantx.c index 474c040..a8d0952 100644 --- a/carl9170fw/carlfw/src/wlantx.c +++ b/carl9170fw/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);