mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
7418c5fd3c
Handling these events notifies hwsim of address changes for interface creation/removal outside the initial namespace as well as address changes due to scanning address randomization. Interfaces that hwsim already knows about are still handled via nl80211. But any interfaces not known when ADD/DEL_MAC_ADDR events come will be treated specially. For ADD, a dummy interface object will be created and added to the queue. This lets the frame processing match the destination address correctly. This can happen both for scan randomization and interface creation outside of the initial namespace. For the DEL event we handle similarly and don't touch any interfaces found via nl80211 (i.e. have a 'name') but need to also be careful with the dummy interfaces that were created outside the initial namespace. We want to keep these around but scanning MAC changes can also delete them. This is why a reference count was added so scanning doesn't cause a removal. For example, the following sequence: ADD_MAC_ADDR (interface creation) ADD_MAC_ADDR (scanning started) DEL_MAC_ADDR (scanning done) |
||
---|---|---|
.. | ||
hw.conf | ||
hwsim-dbus.conf | ||
hwsim.c | ||
hwsim.rst | ||
ios_convert.py | ||
iwd-decrypt-profile.c | ||
probe-req.c | ||
run-iwd.sh | ||
run-tests | ||
runner.py | ||
test_runner_kernel_config | ||
test-runner | ||
utils.py |