Question AOSP rom wifi problem

Hi

I have problem with my Galaxy S3

When i flash touchwiz based rom(S4 revolution) i have no problem with phone but when i flash aosp based rom like vanir,pacrom or etc i can't connect to wifi with password, with pin or without password but everything work perfect

Any suggestion where is problem?