If T-Mobile doesn't mess around with the OS (removing features and/or adding T-Mobile craps), then portable WiFi hotspot is included as a feature of Android OS 2.2 (FroYo).