African discus champion Victor Hogan has been dropped from South Africa's Olympic team and banned for two years for doping.

South African anti-doping agency chief executive Khalid Galant says in a text message that Hogan tested positive for methylhexaneamine at the national championships in April, where he threw a personal best. Hogan's backup "B'" sample also tested positive.

Hogan is a three-time African champion and retained his title at the continental championships last month in Durban, South Africa, two months after the failed test.

Galant says the South African athletics federation must now consider if Hogan, who turns 27 this month, should be stripped of any titles.