Are you trying to use a T-Mobile device for mobile hotspot, or your home wifi through a different provider?
I found this page on the Amazon website, which lists out the steps for connecting to a wifi network on your Kindle fire.
Can you clarify what exactly you are trying to do? If you want to connect it to a hotspot it is the same process as connecting to a normal WiFi connection.
Manage your T-Mobile account