San Francisco 49ers linebacker Aldon Smith surrendered to authorities Tuesday night and then almost immediately posted bail, according to a source close to the case.

Smith is now scheduled to appear in court to face felony weapons charges on Nov. 12 and on Nov. 19 to face misdemeanor DUI and drug charges.

According to the source, Smith turned himself in at 6:51 p.m., and then bailed out at $75,000.

Self-surrendering was part of the agreement that Smith made with Santa Clara County District Attorney Jeff Rosen when he was charged with possessing illegal assault weapons on Oct. 9. Smith was in rehab at the time because of his September DUI arrest in San Jose.

The agreement was that Smith would turn himself in by the end of the month.

The weapons charges stem from a June 2012 house party hosted by the 24-year-old Smith where he was stabbed and two others were shot, and deputies later found a cache of assault rifles, magazines and ammunition.