Bluetooth: Move the advertisement monitor events to correct list
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Mar 2021 14:10:56 +0000 (15:10 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 26 Mar 2021 21:05:22 +0000 (14:05 -0700)
The list of trusted events should contain the advertisement monitor
events and not the untrusted one, so move entries to the correct list.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c

index 9392549..2426a0d 100644 (file)
@@ -168,6 +168,8 @@ static const u16 mgmt_events[] = {
        MGMT_EV_PHY_CONFIGURATION_CHANGED,
        MGMT_EV_EXP_FEATURE_CHANGED,
        MGMT_EV_DEVICE_FLAGS_CHANGED,
+       MGMT_EV_ADV_MONITOR_ADDED,
+       MGMT_EV_ADV_MONITOR_REMOVED,
        MGMT_EV_CONTROLLER_SUSPEND,
        MGMT_EV_CONTROLLER_RESUME,
 };
@@ -198,8 +200,6 @@ static const u16 mgmt_untrusted_events[] = {
        MGMT_EV_EXT_INDEX_REMOVED,
        MGMT_EV_EXT_INFO_CHANGED,
        MGMT_EV_EXP_FEATURE_CHANGED,
-       MGMT_EV_ADV_MONITOR_ADDED,
-       MGMT_EV_ADV_MONITOR_REMOVED,
 };
 
 #define CACHE_TIMEOUT  msecs_to_jiffies(2 * 1000)