You can't transfer Wi-Fi over a hotspot on iPhones natively, but this answer states:
You can do this with USB or Bluetooth tethering on jailbroken iOS devices using an app such as MyWi.