modify macloader.cpp for wifi module