You need to download the drivers from the Compaq/HP WEB support/download page. Make sure you select your model laptop and the XP or Vista Windows version of the drivers you require and install them. Use this link to download the drivers: - http://h18000.www1.hp.com/cpq-country/cpq_support.html
You can find the drivers for the system by downloading the same from any system with which you can access internet and copying the file to the system with no wireless driver.
click on the above link. choose the OS your system is running on.
Choose the option called Driver -Network where you can download the wireless drivers.Make sure you install either intel or broadcomm driver. You may install both as well.
Once this is done. Restart your system and then try selecting the network you would like to connect and then enter the pass key to connect to the network you want to connect to.