Use a different network device on some devices for sending private driver commands
On devices where we have a dedicated p2p network interface we need to use the real wifi network interface to send private commands to the driver. Otherwise they can't be handled by the driver for the p2p network interface.
Fix several issues which prevent the Mii Box from connecting
* Set GO intent to 0 to always act as group client
* Add a hook for dhclient to prevent default routes being added for p2p devices
* Fix file monitor to react on any file change as the changes-done event from glib is not reliable
The changes above will mostly like make other devices work too. (LP: #1576331, #1597449)
Fix RTSP debugging and device state update reporting
Due to previous search&replace operations the environment variable we are using to enable RTSP debugging was corrupted and is now correctly named AETHERCAST_RTSP_DEBUG. Furthermore we were only reporting device state updates for the current device but should really report them for every device regardless if its the current one or not.
Approved by: Alfonso Sanchez-Beato, Konrad Zapałowicz, Matteo Croce
Add URfkill support to manage kill switches on selected devices
Some devices don't use the rfkill provided from the kernel to managed the kill state of WiFi. They are using a libhardware_legacy from Android through libhybris to manage the WiFi power state. We have to use urfkill in those cases rather than relying on the rfkill provided from the kernel.
Fixes LP #1579676
This fixes in addition also problems with reporting the correct device state when it updates.
Approved by: Alfonso Sanchez-Beato, Konrad Zapałowicz
There were several problems with the integration tests so that they couldn't run at all. This fixes the different problems:
* don't acquire display lock twice
* allow user to specify a different reference result file per environment variable
* run glib mainloop for a second on startup to respect deferred pipeline startup