I9300 wifi greyed out

I9300 I have flashed stock firmware but still same problem some times wifi works perfect some times wifi goes greyed out any suggestion to fix it. :confused: