When you say that you can't turn on wifi, do you mean it is grayed out? Did the issue occur after a software update?
Have you looked at this article? http://support.apple.com/kb/ts1559
There are several LARGE discussions on this forum about this issue; take a look at them if you have some free time: