I recently bought an HTC One S for testing purposes & received it with the following specifications.
HTC ONE S unlocked, s-off with cid -1111111 / stock tmobile / jelly bean
Unfortunately, it came with with the infamous wifi / bluetooth error.
At first I thought it was an hardware issue but after opening it up and examining it, I came to the conclusion that its software based and probably caused by a bad flash.
It took me about 2-3 days to fix this issue which included flashing ruu's, firmwares, hboots, recoveries, radios & infinite s-on / s-off / locked / unlocked / cid variations.
What is the Wifi + Bluetooth error?
When you try to turn on Wifi or Bluetooth from the settings, it just states that its turning on but then that quickly turns into "error".
Basically, your Wifi and/or Bluetooth are messed up and non-functional due to a bad flash.
--- Step 1 ---
You need an all in one utility for the HTC One S - I used the following one,
[TOOL] HTC One S All-In-One Toolkit v4.0
You can download it by clicking [Link removed, I didn't know it wasn't allowed on XDA - Sorry, you will just have to do the steps manually via fastboot / cmd or find a kit on your own] It's pretty easy to do manually, just look for a fast boot tutorial, there are more than a few floating around.
--- Step 2 ---
I received the phone with supercid 111111 which I changed to stock T-MOB010 using the all in one tool and then flashed the proper carrier RUU for my cid (RUU_Ville_U_TMOUS_1.53.531.16_Radio_0.16.31501S.0 2 _10.18.31501S.08L_release_262073_signed.exe)
You will now need to flash the very first RUU available for your specific One S model / 1.53 is ideal, if you don't have access to that then maybe 1.78 might do the trick.
- Preparation -
(Important) You need: Locked bootloader, stock cid and the very first RUU.exe that was released for your device - In my 7 tests so far, the 1.53 ruu has always worked eventually. (read the 3rd post for an example on this)
Boot up into the bootloader by holding power + volume down.
You can lock the bootloader, change back to stock cid from the All in One tool while booted up in fastboot.
CID LIST + Help: http://forum.xda-developers.com/show....php?t=2139447
--- Step 3 ---
(Locked & Stock Cid)
Boot into fastboot, run the 1.53 (1.78?) RUU.exe
Success? Then go ahead and perform the next step in order!
--- Step 4 ---
power up the phone with an activated sim card with data.
during the initial set up, select use mobile data option instead of Wifi
Finish the set up using mobile data
power down the phone, remove sim
boot into recovery & clear cache
(power + volume down into bootloader
select recovery, let it fully go into recovery
in recovery press power+volume up
select clear cache from the drop down menu
Do not insert the sim back yet
--- Final Step: The Fix ---
Go into settings & hit the wifi on switch only once and leave it
Now, it will attempt to turn the wifi and it will either turn on or after a few attempts the phone will reboot...
If it does reboot on its own it will seem like it is stuck in a boot loop but don't panic - it's not.
It will do a few loops and then boot back into sense and your wifi will work.
Hope it works for you and make sure you follow the steps exactly as I listed them because that is the variation that worked for me and six other devices with the same exact problem. This also fixed not having 4G / hspa on one of the devices but there are two extra steps needed to fix that issue.
From the research I collected, it seems this issue is caused by a specific ota update from tmobile that was released a while back.