Does that actually work? I don't think you can both have hotspot on and be connected to another network.
I'd be happy to be proven wrong on this however.
It's called Dual-Band Simultaneous or "STA+AP" (Station + Access Point) concurrency that can bridge an existing wifi connection to an access point to other devices via a hotspot.