From the schematic at http://ruggedcircuits.com/AM040/am040.pdf, it seems that the Hibernate (pin 20) of the Microchip WiFi module IS connected to the Atmega328 onboard, and it seems it is connected to D8. Try something like: