Disclosed is a method of compensating a frequency error and an apparatus
for the same in the communication system suitable to the frequency error compensation.
The method includes the steps of despreading the signal, estimating a frequency
error value by differentiating the despread signal, generating a tone based on
the frequency error value, and compensating for a frequency error of the despread
signal based on the tone.