diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-16 10:21:17 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-16 11:59:51 +0200 |
commit | 8905cf4670c260c332b1b8b84cc8cdb972937957 (patch) | |
tree | 7dae16dd768b90809568e494c5f5a85f65de311e /src | |
parent | 9639e52726854782508e35a75c6abf874bd9e608 (diff) |
filter: trivial: reorder WWAN rule before the TTY ones
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-filter.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mm-filter.h b/src/mm-filter.h index 3e0c57be..6c38568d 100644 --- a/src/mm-filter.h +++ b/src/mm-filter.h @@ -55,13 +55,13 @@ typedef enum { /*< underscore_name=mm_filter_rule >*/ MM_FILTER_RULE_NET = 1 << 5, MM_FILTER_RULE_USBMISC = 1 << 6, MM_FILTER_RULE_RPMSG = 1 << 7, - MM_FILTER_RULE_TTY = 1 << 8, - MM_FILTER_RULE_TTY_PLATFORM_DRIVER = 1 << 9, - MM_FILTER_RULE_TTY_DRIVER = 1 << 10, - MM_FILTER_RULE_TTY_ACM_INTERFACE = 1 << 11, - MM_FILTER_RULE_TTY_WITH_NET = 1 << 12, - MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN = 1 << 13, - MM_FILTER_RULE_WWAN = 1 << 14, + MM_FILTER_RULE_WWAN = 1 << 8, + MM_FILTER_RULE_TTY = 1 << 9, + MM_FILTER_RULE_TTY_PLATFORM_DRIVER = 1 << 10, + MM_FILTER_RULE_TTY_DRIVER = 1 << 11, + MM_FILTER_RULE_TTY_ACM_INTERFACE = 1 << 12, + MM_FILTER_RULE_TTY_WITH_NET = 1 << 13, + MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN = 1 << 14, } MMFilterRule; /* This is a stricter policy which will only automatically probe device ports @@ -75,13 +75,13 @@ typedef enum { /*< underscore_name=mm_filter_rule >*/ MM_FILTER_RULE_NET | \ MM_FILTER_RULE_USBMISC | \ MM_FILTER_RULE_RPMSG | \ + MM_FILTER_RULE_WWAN | \ MM_FILTER_RULE_TTY | \ MM_FILTER_RULE_TTY_PLATFORM_DRIVER | \ MM_FILTER_RULE_TTY_DRIVER | \ MM_FILTER_RULE_TTY_ACM_INTERFACE | \ MM_FILTER_RULE_TTY_WITH_NET | \ - MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN | \ - MM_FILTER_RULE_WWAN) + MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN) /* This policy only allows using device ports explicitly whitelisted via * udev rules. i.e. ModemManager won't do any kind of automatic probing. */ |