His bloody crackdown on the opposition, while it was within the streets, didn't crush it by associating it with the US, however by brute drive.
I'm sure Ahmadinejad will get some benefit from attacking the US, however I don't assume it is essential. An Iranian reformer says that US stress helps Ahmadinejad.