In the US, the service provider can control if that feature is available. If you try to enable it it will ping the service provider to see if you paid for that ability. This is done because the data usage goes way up when you start using hotspot.
Some service providers lock that feature, because it’s tied to much heavier than normal data usage. I have Verizon, and while they don’t lock mobile hotspot, they do give me a different hotspot data restriction than my phone.
Pretty sure the hard shutdown still works without any code though