Man to prison in weapon case from traffic stop