X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Fwlantx.c;h=a8d09522d3619c2d7934d79d74be3dd01414a17c;hb=bdb09091452a302db607b14c9025a91d9c09405a;hp=a421c4c0d65ddefdad4d4f2b8ac269f5c2518471;hpb=dbadaaa00253cdf93eaa60d78846f5d25f0bb7cc;p=carl9170fw.git diff --git a/carlfw/src/wlantx.c b/carlfw/src/wlantx.c index a421c4c..a8d0952 100644 --- a/carlfw/src/wlantx.c +++ b/carlfw/src/wlantx.c @@ -19,8 +19,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #include "carl9170.h" @@ -261,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. @@ -273,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);