Are you using an HP installer? Don't. Just add the printer using the Print and Scan preference pane. This should help http://support.apple.com/kb/HT3500
The only way around it is to use Wireless Direct, but you will have to switch among the different wireless networks with your Mac.
Follow steps one below to enable Wireless Direct for the printer (which will act like a router):
Next click the Wifi icon on your Mac, select Show Networks,
Click on Joind other network and connect to the wireless direct connection,
Hope that may help,