# # Configure wireless lan # proc wifi_ssid { } { return $::env(GENODE_WIFI_SSID) } proc wifi_psk { } { return $::env(GENODE_WIFI_PSK) } # # widi_drv config generator (supporting a network list) # # You may script your tests with this function in the dynamic_rom config below. # The syntax for the networks parameter is # # { ssid protection passphrase explicit_scan } # # Example dynamic_rom config: # # { # } [wifi_config 30 5 no [list "net1 WPA2 net1_psk no" "net2 WPA2 net2_psk no"]] { # # # } [wifi_config 30 5 no [list "net1 WPA2 net1_psk no" "net2 WPA2 net2_psk yes"]] { # } set wifi_verbose false set wifi_verbose_state false proc wifi_config { connected_scan_interval scan_interval rfkill networks } { global wifi_verbose global wifi_verbose_state set config "\n" foreach n $networks { append config " \n" } append config "\n" return $config } # # Restrict platforms # assert_spec x86 # # Build # create_boot_directory import_from_depot [depot_user]/raw/wifi_firmware set build_components { core init timer app/pci_decode drivers/acpi drivers/platform drivers/rtc drivers/wifi/pc server/report_rom server/dynamic_rom server/nic_router test/lwip/http_srv lib/vfs_wifi lib/vfs_jitterentropy lib/vfs_lwip } build $build_components # # Generate config # append config { } [wifi_config 30 5 no {}] { } [wifi_config 30 5 no [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } [wifi_config 30 5 yes [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } [wifi_config 30 5 no [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } install_config $config # # Boot modules # build_boot_image [build_artifacts] run_genode_until forever # vi: set ft=tcl :