Well I have done a bit more poking around and found out I was getting a "Count Overflow" interrupt just before the receive and, as I found out, transmit stopped. I am therefore assuming that the rx and tx gets disabled to prevent the counts from overflowing. Clearing the counts (by calling Wifi_Intr_CntOverflow) every so often does indeed stop the rx and tx from stopping. As far as the overflow interrupt goes, I do not know what is disabled and, therefore, what to reenble to get rx and tx working again. But just clearing the counts (i.e. the behaviour of Wifi_Intr_CntOverflow) does not work. Could this cause a problem when using the normal Wifi library?