wont connect to wifi
wont connect to wifi but will connect to data internet, what needs replacing?
There are no silver bullet solutions...you will have to do some troubleshooting to get some better leads. Start by checking that the upper antennas are all properly connected and not damaged. If that looks good, check the WLAN IC and the associated power rails to see if those are okay.
Get back to us with this info and perhaps give us more background on the history of the device as that may provide more clues.
First check that WiFi is even turning on on your device. Go to settings>wifi and then it on. If it successful turns on but doesn't show any networks then walk to the nearest router. If it appears then you might just have a bad antenna. Bluetooth and wifi are on the same antenna so test both in the same way.
If wifi stays greyed out and will not turn on or if Bluetooth is constantly spinning and not turning on or if a MAC address doesn't show in your settings then you might have an issue related to your WiFi Module.
If wifi can turn on but only detect the wifi network when next to a router the issue is almost always the L shaped 2.4 / 5.0 GHz antenna needing replacing.
It's the cable that connects to 4 antenna connectors under the logic board and breaks easily from glass fragments or dropping the phone too much.
Here are parts and guide to replace it if needed: