add config mac mode interface and implement