genode/repos/ports/run
Josef Söntgen d4e4b8bf60 driver/wifi: rework CTRL interface manager
This commit streamlines the interaction between the Wifi::Manager
and the wpa_supplicant's CTRL interface.

As user-facing changes it alters some default settings and introduces
new features:

* Every configured network now needs to explicitly have its
  'auto_connect' (to be considered an option for joining) attribute
  set to 'true' whereas this was previously the default value if the
  attribute was not set at all.

* The 'log_level' attribute is added and configures the supplicant's
  verbosity. Valid values correspond to levels used by the supplicant
  and are as follows 'excessive', 'msgdump', 'debug', 'info', 'warning'
  and 'error'. The default value is 'error' and configures the least
  amount of verbosity.

* The 'bgscan' attribute may be used to configure the way the
  supplicant performs background-scanning to steer or rather optimize
  roaming decision within the same network. The default value is set
  to 'simple:30:-70:600'. It can be disabled by specifying an empty
  value, e.g. 'bgscan=""'.

* The 'verbose_state' attribute was removed alltogether and similar
  functionality is now coverted by 'verbose' attribute.

Implementation-wise the internals changed significantly and are
outlined in the following paragraphs.

Formerly the interaction between the manager and the supplicant
was handled in an apparent way where the internal state of each
interaction was in plain sight. This made the flow cumbersome to
follow and therefor each interaction is now confined to its own
'Action' object that encapsulates the ping-pong of commands and
responses between the manager and the supplicant. All actions are
processed in an sequential way and thus there is no longer any
need to defer pending actions depending on the interal state of
the current interaction. Configuration changes as well as events
issued by the supplicant where new actions can be created are
handled in this fashion. Of note are both signal-handlers,
'_handle_cmds' and '_handle_events' respectively.

The state report, which provides the information about the current
state of connectivity to a given wireless network, was dealt with
in the same vein and its handling was spread across the manager
implementation. Again, to make it easier to follow, the generation
of the state report is now purely driven by the 'Join_state' object.
This object encapsulates the state of connectivity and is normally
updated by events issued from the supplicant (see '_handle_events').
It is also incorporated when handling command responses (see
'_handle_cmds').

Handling of timed-actions, like scan and signal quality
update requests, was done by setting a timeout at the Timer session
directly and thus only one timed-action could be pending at any time.
This excluded dealing with timed-actions like connected-scanning
and signal quality polling concurrently. This was changed and now
a One_shot_timeout is used to programm each concurrent timed-action.

For implementing the communication channel for the CTRL interface the
manager and supplicant use a shared memory buffer, the Msg_buffer.
Since the CTRL interface for Genode was implemented using C, some
shenanigans were performed to access the memory buffer. Now the
CTRL interface implementation uses C++ and only exports the functions
required by the supplicant as C. This simplifies the usage of the
Msg_buffer and allows for removing the global functions needed for
synchronizing the Msg_buffer access as those are now part of the
object itself via the 'Notify_interface'.

Fixes #5341.
2024-10-08 09:09:22 +02:00
..
bash.run ports: use [build_artifacts] in run scripts 2023-11-28 14:44:29 +01:00
gdb_interactive.run gdb_interactive.run: pass Ctrl-C to GDB on hardware 2023-10-25 08:58:52 +02:00
gdb.inc run/gdb: increase RAM quota to 42M 2024-08-27 15:29:38 +02:00
gdb.run ports: add a test for GDB 2023-10-04 13:22:08 +02:00
genode_org.run Remove '_drv' suffix 2024-06-20 12:54:30 +02:00
lighttpd_fetchurl.run curl: update to version 8.7.1 2024-04-19 08:54:21 +02:00
lighttpd.run Remove '_drv' suffix 2024-06-20 12:54:30 +02:00
microcode.run ports: use [build_artifacts] in run scripts 2023-11-28 14:44:29 +01:00
netperf_lwip_bridge.run Don't use the NIC server mode of NIC drivers 2021-02-23 11:53:41 +01:00
netperf_lwip_usb.run ports: rename *_usb30.run *_usb.run 2021-02-23 12:02:43 +01:00
netperf_lwip_wifi.run Remove '_drv' suffix 2024-06-20 12:54:30 +02:00
netperf_lwip.run Don't use the NIC server mode of NIC drivers 2021-02-23 11:53:41 +01:00
netperf_lxip_bridge.run Don't use the NIC server mode of NIC drivers 2021-02-23 11:53:41 +01:00
netperf_lxip_usb.run ports: rename *_usb30.run *_usb.run 2021-02-23 12:02:43 +01:00
netperf_lxip_wifi.run Remove '_drv' suffix 2024-06-20 12:54:30 +02:00
netperf_lxip.run Don't use the NIC server mode of NIC drivers 2021-02-23 11:53:41 +01:00
netperf.inc driver/wifi: rework CTRL interface manager 2024-10-08 09:09:22 +02:00
socat.run Rename src/drivers to src/driver 2024-06-20 12:54:30 +02:00
test.vbox vbox: use PIIX3 instead of ICH9 in VM config 2019-11-19 14:42:23 +01:00
tool_chain_auto.run tool_chain_auto.run: remove posix.lib.so preload config 2023-10-25 08:58:53 +02:00
vbox5_ubuntu_16_04_32.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_ubuntu_16_04_64.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_win7_32.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_win7_64_multiple.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_win7_64_raw.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_win7_64_share.run base: remove SPEC variables of boards (fix #3971) 2021-01-25 13:58:09 +01:00
vbox5_win7_64.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox5_win10_64.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vbox6_genode_usb_hid_raw.run ports: add vbox6 USB HID raw test 2024-08-30 07:56:19 +02:00
vbox6_genode_usb_hid_raw.vbox ports: add vbox6 USB HID raw test 2024-08-30 07:56:19 +02:00
vbox_share.inc Rename src/drivers to src/driver 2024-06-20 12:54:30 +02:00
vbox_win.inc Rename src/drivers to src/driver 2024-06-20 12:54:30 +02:00
verify.run ports: use [build_artifacts] in run scripts 2023-11-28 14:44:29 +01:00
vim.run ports: use [build_artifacts] in run scripts 2023-11-28 14:44:29 +01:00
virtualbox6.run Rename src/drivers to src/driver 2024-06-20 12:54:30 +02:00
virtualbox6.vbox vbox6: enable audio via OSS plugin 2021-10-13 14:01:02 +02:00
virtualbox_auto.inc depot: rename src/rump -> src/vfs_rump 2024-08-27 15:33:31 +02:00
virtualbox.run Rename src/drivers to src/driver 2024-06-20 12:54:30 +02:00
vm_genode_usb_hid.vbox Fix 'vbox5_genode_usb_hid.run' / add to autopilot 2018-05-30 13:36:08 +02:00
vm_stress_32.vbox vbox5: add testing VMs causing load 2020-04-17 12:40:13 +02:00
vm_stress_64.vbox vbox5: add testing VMs causing load 2020-04-17 12:40:13 +02:00
vm_stress_vbox5-debian32.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vm_stress_vbox5-debian64.run vbox5: remove VM generic version 2023-10-04 13:22:04 +02:00
vm_ubuntu_16_04_32_1vcpu.vbox vbox5*.run: enable VM tests for Fiasco.OC 2019-06-13 12:22:49 +02:00
vm_ubuntu_16_04_32.vbox vbox5: show serial for ubuntu VMs during autopilot 2020-07-30 08:49:23 +02:00
vm_ubuntu_16_04_64.vbox vbox5: show serial for ubuntu VMs during autopilot 2020-07-30 08:49:23 +02:00
vm_win7_32_share.vbox vbox5: add shared folder test 2017-05-31 13:15:59 +02:00
vm_win7_64_1vcpu.vbox vbox5*.run: enable VM tests for Fiasco.OC 2019-06-13 12:22:49 +02:00
vm_win7_64_multiple.vbox vbox*.run: fix scripts 2017-08-28 16:49:48 +02:00
vm_win7_64_raw.vbox run: add vm running directly from block partition 2016-10-21 12:39:36 +02:00
vm_win7_64_share.vbox vbox5: add shared folder test 2017-05-31 13:15:59 +02:00
vm_win7_64.vbox vbox: test VM test case with a lot of memory 2017-06-29 12:00:01 +02:00
vm_win7.vbox vbox: use ahci model in vbox_auto_win7.run 2016-06-28 11:09:26 +02:00
vm_win10_64_1vcpu.vbox vbox5*.run: enable VM tests for Fiasco.OC 2019-06-13 12:22:49 +02:00
vm_win10_64.vbox vbox5*.run: enable VM tests for Fiasco.OC 2019-06-13 12:22:49 +02:00
vm_win81_64.vbox vbox: 64-bit guest support 2015-11-29 18:17:06 +01:00
vmm_vm_stress.inc vm_stress: change output message for ci scripts 2020-04-20 12:36:00 +02:00
win7_64_raw.vmdk run: add vm running directly from block partition 2016-10-21 12:39:36 +02:00