It should not hurt to disable avast for 10 minutes to test.
If you really want to be sure…
just pull out the network cable from the wall outlet to your modem.

If you have disabled avast and the printer is working, we know where to start looking.
If it still doesn’t work, write down any error message and other things you notice during the test and let us know.