A method and apparatus for compensating an oscillator in a location-enabled wireless
device is described. In an example, a mobile device includes a wireless receiver
for receiving wireless signals and a GPS receiver for receiving GPS signals. The
mobile device also includes an oscillator having an associated temperature model.
A frequency error is derived from a wireless signal. The temperature model is adjusted
in response to the frequency error and a temperature proximate the oscillator.
Frequency error of the oscillator is compensated using the adjusted temperature
model. In another example, a frequency error is derived using a second oscillator
within the wireless receiver.