I just need a small help from you @franciscofranco sir i was using custom rom but then i decided to switch back to stock so i flashed December stock rom using mi flash tool then updated it to April build but my wifi and hotspot not working now i again clean flashed stock rom today but still facing the same problem and i not rooted ! I know this is off topic but i think you are a senior member out here and you should be having some knowledge about it ! Thankyou
This Kernel doesn't touch WiFi in any shape or form, it uses the built-in WiFi module that's present on stock rom. If you're using a custom Kernel that messes with the WiFi stack (eg. injecting a custom WiFi module) you must dirty flash your rom first to ensure WiFi will work properly. You've been warned.
I've never had problems like yours, every time I am flashing through the franco app. it always works great without problems.