u8160: move wifi stuff from common