how do you compute the channel gain from path loss index in wireless communication?
You will have to properly define path loss index. As soon as you have done that, you'll have a formula that links path loss index and attenuation/gain.