From 11a619eef07d5c95c9babac844c89bebecb76601 Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: Fri, 9 Apr 2021 05:54:23 +0000
Subject: [PATCH] brcm63xx: smarthub3/disc enable scan events

Enable receiving scan events using nl80211.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
---
 .../disc/base-files/etc/wifi.json             | 27 +++++++++++++++++++
 .../smarthub3/base-files/etc/wifi.json        | 18 +++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/iopsys-brcm63xx-arm/disc/base-files/etc/wifi.json b/iopsys-brcm63xx-arm/disc/base-files/etc/wifi.json
index b618bdab3..a6c4eccca 100644
--- a/iopsys-brcm63xx-arm/disc/base-files/etc/wifi.json
+++ b/iopsys-brcm63xx-arm/disc/base-files/etc/wifi.json
@@ -26,6 +26,33 @@
                         "group": [
                                 "notify"
                         ]
+                },
+                {
+                        "type": "wifi-event",
+                        "name": "cfg",
+                        "ifname": "wl0",
+                        "family": "nl80211",
+                        "group": [
+                                "scan"
+                        ]
+                },
+                {
+                        "type": "wifi-event",
+                        "name": "cfg",
+                        "ifname": "wl1",
+                        "family": "nl80211",
+                        "group": [
+                                "scan"
+                        ]
+                },
+                {
+                        "type": "wifi-event",
+                        "name": "cfg",
+                        "ifname": "wl2",
+                        "family": "nl80211",
+                        "group": [
+                                "scan"
+                        ]
                 }
         ]
 }
diff --git a/iopsys-brcm63xx-arm/smarthub3/base-files/etc/wifi.json b/iopsys-brcm63xx-arm/smarthub3/base-files/etc/wifi.json
index ea11010fb..132e76816 100644
--- a/iopsys-brcm63xx-arm/smarthub3/base-files/etc/wifi.json
+++ b/iopsys-brcm63xx-arm/smarthub3/base-files/etc/wifi.json
@@ -17,6 +17,24 @@
                         "group": [
                                 "notify"
                         ]
+                },
+                {
+                        "type": "wifi-event",
+                        "name": "cfg",
+                        "ifname": "wl0",
+                        "family": "nl80211",
+                        "group": [
+                                "scan"
+                        ]
+                },
+                {
+                        "type": "wifi-event",
+                        "name": "cfg",
+                        "ifname": "wl1",
+                        "family": "nl80211",
+                        "group": [
+                                "scan"
+                        ]
                 }
         ]
 }
-- 
GitLab