So, I found out that removing the wifi driver after wake up from hibernation (rmmod brcmfmac), and then reloading it again (modprobe brcmfmac) solves the problem. The network starts to work again.