iOS 5.1.1 can not be upgraded to a newer iOS version. The latest iOS version that can be installed on an iPhone 4 is iOS 7.1.2.