SANTA CLARA — Aldon Smith is expected recover in time for the 49ers’ training camp after undergoing recent shoulder surgery on a torn labrum.

“I had surgery a couple weeks ago on my shoulder. I’m just rehabbing and healing up,” , Smith told KNBR 680-AM on Wednesday.

Coach Jim Harbaugh, speaking at the NFL owners meetings in Arizona, said Smith should be ready for training camp in late-July, according to CSN Bay Area.

Smith didn’t miss a game last season and totaled a franchise-record 19½ sacks last season. The 49ers’ first-round draft pick in 2011, he had a 14-sack output as a rookie.

Smith initially said last month that his shoulder injury traced to a “bad stinger” from a Nov. 19 win over the Chicago Bears. It turned out Smith had a torn labrum which isn’t believed to have occurred from his Feb. 15 foray into mixed-martial-arts training.

“I was dead serious about it. It was something I always wanted to do,” Smith told KNBR of his MMA stint. “I figured why not try it. I think I’m pretty good. I’m definitely not going to get beat up.”

Smith didn’t produce any sacks in his final six games, and although he admitted Justin Smith’s triceps injury had “a little bit to do with it,” Smith said there were “a lot of factors.”

Smith was slated to present a $99,432 check Wednesday to the Boys and Girls Clubs of San Francisco and the Peninsula, as a result of his pledge stemming from his 19½ sacks last season.