Set MIST_SUPPORTED_DEVICE=1 on tty devices associated with supported modems. This CL modifies 51-mist.rules to also set MIST_SUPPORTED_DEVICE=1 on the tty devices associated with the modems supported by mist. This allows 52-mm-modem-permissions.rules to determine if a tty device is associated with a supported modem and set the appropriate permissions on the tty device. BUG=chromium:333962 TEST=Tested the following: 1. Build and run unit tests. 2. Insert a supported 3G dongle and verify that mist is invoked to switch the dongle into a modem. Also verify using the following command that udev sets MIST_SUPPORTED_DEVICE=1 on the 'usb_device' device associated with the dongle when it's added to the system and after it's switched to the modem mode, and also on the 'tty' device associated with the dongle after it's switched to the modem mode. udevadm monitor --property Change-Id: Ied0ba59f0803e6316b8d2b2111abbcf5d5977485 Reviewed-on: https://chromium-review.googlesource.com/182678 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org>
1 file changed