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. Do not link WiFi code when only BT or BLE is used and WiFi is not used. 2. Do not link coexist code when CONFIG_SW_COEXIST_ENABLE is disabled.
1.add os adapter to wifi driver 2.type of encrypt funcs not correct