aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/reference/api/ModemManager-overview.xml22
-rw-r--r--src/mm-filter.h18
2 files changed, 20 insertions, 20 deletions
diff --git a/docs/reference/api/ModemManager-overview.xml b/docs/reference/api/ModemManager-overview.xml
index dd4acbea..ff532fe4 100644
--- a/docs/reference/api/ModemManager-overview.xml
+++ b/docs/reference/api/ModemManager-overview.xml
@@ -197,6 +197,17 @@ $ sudo udevadm trigger
</para>
</listitem>
<listitem>
+ <para><emphasis>MM_FILTER_RULE_WWAN</emphasis></para>
+ <para>
+ This filter will automatically flag as allowed all wwan control ports exposed
+ in the wwan subsystem. Unless there is a will to explicitly forbid the wwan control
+ ports, this filter should always be enabled.
+ </para>
+ <para>
+ This filter rule is available since 1.18.0.
+ </para>
+ </listitem>
+ <listitem>
<para><emphasis>MM_FILTER_RULE_TTY</emphasis></para>
<para>
If the MM_FILTER_RULE_TTY filter is disabled, no TTY port will be allowed. If this
@@ -239,17 +250,6 @@ $ sudo udevadm trigger
accepted by any of the TTY-specific filters; i.e. the TTY port will be forbidden.
</para>
</listitem>
- <listitem>
- <para><emphasis>MM_FILTER_RULE_WWAN</emphasis></para>
- <para>
- This filter will automatically flag as allowed all wwan control ports exposed
- in the wwan subsystem. Unless there is a will to explicitly forbid the wwan control
- ports, this filter should always be enabled.
- </para>
- <para>
- This filter rule is available since 1.18.0.
- </para>
- </listitem>
</itemizedlist>
</para>
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. */