Download the iOS 5.1.1 file for your iPhone. Once you download that to your desktop. Connect your iPhone to iTunes. Press Command while clicking on restore. You should have an option to select the version of iOS that you just downloaded, which is iOS 5.1.1.
Restore your iPhone to iOS 5.1.1.