Avast is anti-virus software, not a firewall.
If you have setup the WiFi correctly, Avast will work without a problem. Do you have the TCP/IP protocol installed?