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
@@ -196,6 +196,17 @@ $ sudo udevadm trigger
This filter rule is available since 1.16.0.
+
+ MM_FILTER_RULE_WWAN
+
+ 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.
+
+
+ This filter rule is available since 1.18.0.
+
+
MM_FILTER_RULE_TTY
@@ -239,17 +250,6 @@ $ sudo udevadm trigger
accepted by any of the TTY-specific filters; i.e. the TTY port will be forbidden.
-
- MM_FILTER_RULE_WWAN
-
- 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.
-
-
- This filter rule is available since 1.18.0.
-
-
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. */