It's rather amazing how someone already has written an explanation in Wikipedia. http://en.wikipedia.org/wiki/Wi-Fi