<p>A method of determining a distance between a first wireless device and a second wireless device is provided. In this method, a location symbol can be generated by filtering and modulating a pseudorandom (PRN) code. The location symbol can be provided in a data field of a legacy wireless packet to form a first location packet. The first location packet can be transmitted from the first wireless device to the second wireless device. A second location packet can be transmitted from the second wireless device to the first wireless device, wherein the second location packet is substantially identical to the first location packet. An effective roundtrip time between the first and second wireless devices can be determined based on the first and second location packets. The distance between the first and second wireless devices can be computed using this roundtrip time.</p>