To fix this "issue", you need to open the launcher application installed for your Compaq. It's usually the application that manages the quick settings buttons. You can find it in the System Tray of your computer. Open the application and then configure the behavior of the WiFi button. It is probably configured to open only the Bluetooth. Additionally, make sure the WiFi driver is installed and working.