Fix following WiFi bugs: 1. Make smartconfig thread-safe 2. Fix WiFi stop/deinit memory leak 3. Refactor for WiFi init/deinit/ioctl etc 4. Fix the bug that WiFi stop leads to task watchdog
1.add os adapter to wifi driver 2.type of encrypt funcs not correct