SHANGHAI -- Roger Federer's chances of qualifying for the ATP Tour Finals took a hit Thursday when he lost in three sets to Gael Monfils at the Shanghai Masters, the latest early-round loss for the 17-time Grand Slam champion.
Monfils beat Federer in the third round 6-4, 6-7 (5), 6-3, extending the former world No. 1's recent slide.
Federer, who has slipped to No. 7 in the rankings, was playing for the first time since losing in the fourth round at the US Open. He was in need of a strong showing in Shanghai to secure a berth in the elite season-ending ATP Tour Finals in London -- a tournament he played every year since 2002.
Federer is seventh in the standings, with only a slight lead over several other players vying to get into the eight-man field in London. He plans to play in Basel and Paris in hopes of making it into the Nov. 4-11 tournament.
Federer fell to a player ranked outside the top 40 for the fourth time in his last six matches. He came into the match with a 6-1 record against Monfils, who returned to the tour recently after an injury layoff.
Federer remained upbeat despite the loss -- and his subsequent defeat in doubles with Chinese partner Zhang Ze. He said the most important thing was not to worry about every setback.
"It's pretty simple: You just keep on working hard, make sure that you get back on winning ways, then you become confident again, sort of get there,'' Federer said.
"Monfils is a quality player, like some others. I lost some other matches this year because I couldn't really perform at 100 percent. Probably shouldn't have played. But I don't really care having to explain some losses from time to time.''
As has been his problem in recent months, Federer struggled to find consistency, hitting 36 unforced errors, with many coming at critical points in the match. Still, he looked to have a chance to pull it out after fighting back from a break down in the second set.
On Monfils' serve in the next game, Federer hit an overhead smash to get a break point and then converted with a deeply angled crosscourt winner, pumping his fist as the decidedly pro-Federer crowd roared.
But he was broken again early in the third set and couldn't muster another comeback. Federer had two more break chances in the seventh game but didn't convert either, even with Monfils looking spent, bending over to catch his breath after long rallies.
Monfils, who's ranked 42nd but has been as high as No. 7, said that even though Federer has not been as dominant as he used to be, with the likes of Djokovic, Nadal and Andy Murray contending for majors, he's still no pushover.
"A lot of people say, like, it's not the same Rog because he got two other great players with him, Novak and Rafa. A third one plays also very good, Andy,'' he said. "But when he's on the court, he's still Roger. He can rip it from anywhere. He can do stuff that not many players can do.''
Monfils did notice, however, a slight dip in Federer's game.
"I think he miss a little bit more than he used to,'' he said. "I know he will try and go for his shot, but maybe he is a bit less confident.''
Djokovic, who plays Monfils next, said although Federer's form has dropped this season, it would be a mistake to write him off.
"He's 17-time Grand Slam winner, one of the best players in the history of the game. If he says he's going to play better, work better, it's definitely worth listening if he says it that way,'' he said.
Wawrinka advanced with a 7-6 (2), 6-4 win over Canadian Milos Raonic, one of the hottest players coming into Shanghai, reaching back-to-back finals in Japan and Thailand and capturing one title.