Question [Q] wpa_supplicant for Xperia S JB

Hi
I updated my xperia s to JB several months ago .. but the wireless didn't work unless I'm using airplane mode or when i remove the sim
i found a solution by replacing the wpa_supplicant file in system/bin with another one found in some forums in my country
the wifi worked without airplane mode but i can't connect to any network
i recovered the original file but now i have two problems : i can't turn on wireless without airplane mode - i can't connect to any network
any one can help plzzz?