| 5367 | | * tx descriptor has the low 15 bits of the tsf at |
|---|
| 5368 | | * the time the frame was received. Use the current |
|---|
| 5369 | | * tsf to extend this to 64 bits. |
|---|
| 5370 | | */ |
|---|
| 5371 | | tsf = ath_extend_tsf(sc->sc_ah, ds->ds_txstat.ts_tstamp); |
|---|
| | 5368 | * TX descriptor contains the transmit time in TU's, |
|---|
| | 5369 | * (bits 25-10 of the TSF). |
|---|
| | 5370 | */ |
|---|
| | 5371 | tsf = ath_hal_gettsf64(sc->sc_ah); |
|---|
| | 5372 | tstamp = ds->ds_txstat.ts_tstamp << 10; |
|---|
| | 5373 | |
|---|
| | 5374 | if ((tsf & 0x3ffffff) < tstamp) |
|---|
| | 5375 | tsf -= 0x4000000; |
|---|
| | 5376 | tsf = ((tsf &~ 0x3ffffff) | tstamp); |
|---|