Connect the printer to your network with the Wireless Setup Wizard so the HP installer can find the printer during the installation. The Wireless Setup Wizard provides an easy way to set up and manage the wireless connection to your printer.
On the printer control panel – tap the Wireless icon – tap the Setup icon – tap Network Setup.
tap Wireless Settings – tap Wireless Setup Wizard.
Tap on the name of the network, and tap OK.
If the list does not display the network name, tap Enter New Network Name, and then follow the on-screen instructions to enter the network name and the network password, and then tap Done.
A summary screen displays tap OK to return to the home screen.
Download and install the printer driver and follow the on-screen instructions to complete the software installation.
If you have a previously saved wifi network saved on the printer, I suggest you to first reset the wifi network setting from the printer,
press the menu button on the printer control panel then select All settings
scroll down to Network then press OK
scroll down to Network Reset then press OK
Press 1 to confirm yes. Then press 1 again to reboot the printer.
Once completed the printer will ask to Setup WIFI.
Follow the Previous mentioned steps to connect to a wireless network.
After the settings have been applied, a connection OK report will print out automatically implying that the printer is connected to wifi.