I recently changed the WiFi access credentials and my HP F4580, obviously, stopped working. Neither the Mac nor the Windows drivers I had let me edit the WiFi settings but I finally found a way to reset the WiFi configuration:
- Turn on the printer
- Click and hold down the Cancel button
- Click and release the WiFi button
- Release the Cancel button
This creates a ad hoc network called hpsetup that you can connect to via WiFi to configure the router.