Hey! I had the same issue, I didnt´conencted to the WI-FI regardless if it was open or how it was protected. I found a workaround, but it´s not perfect. Put the WiFi credencials in the config file, let him boot up and enter the WiFi Settings. You should see all the Data you provided in the config file there,too. Now, turn WiFI of with the software switch and turn it back on. My Pi hangs then for a few seconds and prompts me a: WiFi Connected message. He keeps the connection when you start Kodi, but you can´t automap any network shares as autostart sine its not coneected while starting. Hope this works for you!