qemu/wifi: Add the virtual wifi function on the emulator.

-The qemu wifi fucntion only supports the STA mode and the following
 operations:
 wapi mode wlan0 2
 wapi scan wlan0
 wapi psk wlan0 password 3
 wapi essid wlan0 wifi_name 1
 wapi show wlan0
 wapi disconnect wlan0
-Eanble the virtual wifi function with the MACRO `CONFIG_DRIVERS_WIFI_SIM`.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui
2023-10-23 14:06:12 +08:00
committed by Xiang Xiao
parent c494ce4a96
commit 6a8c638d57
6 changed files with 2100 additions and 11 deletions
+14
View File
@@ -657,4 +657,18 @@ config NETDEV_PHY_DEBUG
endif # ARCH_HAVE_PHY
config DRIVERS_WIFI_SIM
bool "WiFi SIM support"
depends on NETDEV_WIRELESS_IOCTL
default n
config WIFI_SIM_CONFDIR
string "Virt WiFi configuration directory"
default "/etc/wifi"
depends on DRIVERS_WIFI_SIM
---help---
Provides the full path to location in the file system where WiFi-SIM
BSS configuration will be accessed. This is a string and should not
include any trailing '/'.
endif # NETDEVICES