Federer advances to rematch in hometown Swiss Indoors final with defending champion del Potro

Switzerland's Roger Federer celebrates after winning his semifinal match against Canada's Vasek Pospisil at the Swiss Indoors tennis tournament at the St. Jakobshalle in Basel, Switzerland, on Saturday Oct. 26, 2013. (AP Photo/Keystone, Georgios Kefalas) (The Associated Press)

Switzerland's Roger Federer, left, shakes hands Canada's Vasek Pospisil after defeating him in their semifinal match against at the Swiss Indoors tennis tournament at the St. Jakobshalle in Basel, Switzerland, on Saturday Oct. 26, 2013. (AP Photo/Keystone, Georgios Kefalas) (The Associated Press)

Roger Federer earned a rematch with Juan Martin del Potro for his hometown Swiss Indoors title by beating Vasek Pospisil in a tight semifinal on Saturday.

Federer advanced to his eighth straight Basel final with a 6-3, 6-7 (3), 7-5 win against the 40th-ranked Canadian.

The sixth-ranked Federer faltered when serving for the match at 5-3 in the second set, and fell 3-1 behind in the third before rallying.

Earlier, defending champion del Potro also let the second set slip away against an unseeded opponent before beating Edouard Roger-Vasselin of France 6-4, 4-6, 6-2.

If Federer wins Sunday, he'll secure his place at the ATP Finals in London.