How to get Atheros AR5007EG or AR242x wireless cards (may be other models) working in Ubuntu 8.10 (Intrepid Ibex)

This tutorial will explain how to Atheros AR5007EG or AR242x wireless cards working in Ubuntu 8.10 (Intrepid Ibex).First you need to compile latest ath5k driver using the following procedure.Use one of the following method.