a moduled wifi manager write in c language