Patent attributes
A mobile device may receive a plurality of timestamps, wherein the plurality of timestamps indicate sending and receiving time for ranging packets and response packets. The mobile device may calculate a responder turn-around time as a first difference between the second time and the first time. The mobile device may calculate a responding round trip time as a second difference between the second time and the third time. The mobile device may receive from the electronic device an initiator turn-around time and an initiator round trip time. The mobile device may calculate a frequency offset for the wireless protocol using the responder turn-around time, the responding round trip time, the initiator turn-around time, and the initiator round trip time. The mobile device may compare an observed frequency offset to the calculated frequency offset to determine a frequency offset difference and whether it exceeds a threshold, adjusting a ranging measurement.