added configoptions to disable mesh or ap mode