The world number one accepted the suspension in a settlement with the World Anti-Doping Agency.