For beginning this process, ensure that you install the latest driver. You can do it by visiting 123.hp.com/setup 6978.
Search for ‘Devices & Printers’ in the Control Panel.
Select ‘Add a printer’, then choose ‘Show wi-fi Direct Printers.’
Tap on the ‘HP Officejet Pro 6978 Printer’ and choose ‘Add device.’
For credentials, print the Network Configuration page.
Input the passphrase.
Open any document for printing and tap ‘Print.’
Press ‘Properties’ to make modifications in the print settings. Now tap ’Print’ after you preview the page.
https://l-123hp.com/officejet-pro-models/ojpro6978