Supported version: All iOS version (3,4,5, 6, 7)
Change mac address:
nvram wifiaddr=XX:XX:XX:XX:XX
Restore to the original mac address:
nvram -d wifiaddr
Restart iPhone after executing change/restore command above to finish the process:
reboot
nvram wifiaddr=XX:XX:XX:XX:XX
nvram -d wifiaddr
reboot