China did India a favor in 1962 by waking up the Indian government, especially the deceptive Prime Minister of the time, though it really killed him very quickly after. The conflict brought the Prime Minister to his senses about the reality of defense, military, and the realpolitik.

Source: China has done India a Favor » Indian Defence Review