diff mbox series

[v4,1/5] system: adding options for configuring wifi

Message ID 20221004110421.137795-2-angelo@amarulasolutions.com
State Rejected
Headers show
Series Configure default wifi through kconfig | expand

Commit Message

Angelo Compagnucci Oct. 4, 2022, 11:04 a.m. UTC
These options can be used by packages to configure a wifi card
to connect at boot.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
v4:
* Adding depends on BR2_SYSTEM_DHCP != "" (Andreas Ziegler)

 system/Config.in | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/system/Config.in b/system/Config.in
index 888c24ce81..647072b965 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -418,6 +418,20 @@  comment "automatic network configuration via DHCP needs ifupdown or busybox or n
 	depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
 		BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC)
 
+config BR2_SYSTEM_CONNECT_WIFI
+	bool "Connect to a default wifi access point"
+	depends on BR2_SYSTEM_DHCP != "" && BR2_PACKAGE_WPA_SUPPLICANT
+
+config BR2_SYSTEM_CONNECT_WIFI_SSID
+	string "Access point SSID"
+	default ""
+	depends on BR2_SYSTEM_CONNECT_WIFI
+
+config BR2_SYSTEM_CONNECT_WIFI_PASSWORD
+	string "Access point password"
+	default ""
+	depends on BR2_SYSTEM_CONNECT_WIFI
+
 endif # BR2_ROOTFS_SKELETON_DEFAULT
 
 config BR2_SYSTEM_DEFAULT_PATH