Quarterback Alex Smith is going to have his right shoulder surgically repaired, but repairing his relationship with 49ers Coach Mike Nolan could be more difficult. In his strongest act of rebellion to date, Smith on Monday said that Nolan has tried to "undermine" his reputation in the locker room. In an exclusive interview with the Mercury News, Smith said Nolan made it clear to teammates that the quarterback was using injuries as an excuse for poor performance, a charge that has left Smith's locker-room reputation in shambles. Smith, who had long been hinting that an operation was required, said he was frustrated by Nolan's repeated public comments - "the spin," as Smith called it - that questioned the quarterback's toughness. He even suggested that his health status has been left in limbo for so long by the 49ers because "if I had surgery, it would make them look bad." The 49ers announced late Monday that Smith will have season-ending surgery.