Former U.S. attorney general Michael Mukasey said Sunday that President Obama broke a flawed law with the release of five Taliban commanders from Guantanamo Bay, Cuba, in exchange for U.S. Army Sgt. Bowe Bergdahl.

Obama signed a law last year that requires the president to give Congress a 30-day notice before freeing prisoners from the military detention facility.

“He broke the law, but I believe that the law itself is unconstitutional,” Mukasey said on “Fox News Sunday.” “Article II [of the U.S. Constitution] makes him the commander in chief of the armed forces. These people were in the custody of the armed forces.”

Mukasey, who served as attorney general during the George W. Bush administration, also suggested that the military should try Bergdahl on desertion charges, saying: "You can’t wait to try a case until you know absolutely everything about everything. We know enough.”

He said questions about whether Bergdahl has already suffered enough should “not at all relate to the question of whether he gets tried.”

The Post's Dan Lamothe points out key moments in the video released by the Taliban showing Sgt. Bowe Bergdahl's recovery. (Editor's note: This video was originally published June 4, 2014.) (Dan Lamothe and Sarah Parnass/The Washington Post)