iwd: Add support to Scan in AP mode
PATCH 1/1 iwd: Add support to Scan in AP mode
iwd support scanning in AccessPoint mode, thus forward scan requests also when the device is in AccessPoint mode.
---
Only compile tested :)
plugins/iwd.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 5 deletions(-)
plugins/iwd.c +49 -5
@@ -633,15 +633,28 @@ static void cm_device_scan_cb(DBusMessage *message, void *user_data) } } -static int cm_device_scan (struct connman_device *device, -struct connman_device_scan_params *params) +static void cm_ap_scan_cb (DBusMessage *message,void *user_data) +{ +const char *path = user_data; +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, path); +if (!iwdap) +return ; + +if (dbus_message_get_type (message) ==DBUS_MESSAGE_TYPE_ERROR ) { +const char *dbus_error =dbus_message_get_error_name (message); + +DBG ("%s scan failed: %s" , path, dbus_error); + } +} + +static int cm_station_scan (struct connman_device *device, +struct connman_device_scan_params *param) {struct iwd_device *iwdd =connman_device_get_data (device);struct iwd_station *iwds; -if (strcmp (iwdd->mode,"station" )) -return -EINVAL ; - iwds =g_hash_table_lookup (stations, iwdd->path);if (!iwds)return -EIO ;
@@ -653,6 +666,37 @@ static int cm_device_scan(struct connman_device *device,return -EINPROGRESS ; } +static int cm_ap_scan (struct connman_device *device, +struct connman_device_scan_params *param) +{ +struct iwd_device *iwdd =connman_device_get_data (device); +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, iwdd->path); +if (!iwdap) +return -EIO ; + +if (!g_dbus_proxy_method_call (iwdap->proxy,"Scan" , +NULL , cm_ap_scan_cb,g_strdup (iwdap->path), g_free)) +return -EIO ; + +return -EINPROGRESS ; +} + +static int cm_device_scan (struct connman_device *device, +struct connman_device_scan_params *params) +{ +struct iwd_device *iwdd =connman_device_get_data (device); + +if (!strcmp (iwdd->mode,"station" )) +return cm_station_scan (device, params); + +if (!strcmp (iwdd->mode,"ap" )) +return cm_ap_scan (device, params); + +return -EINVAL ; +} +static struct connman_device_driver device_driver = { .name ="iwd" , .type =CONNMAN_DEVICE_TYPE_WIFI ,
Signature · 1 line
2.39.0
Quoted 89 lines · Daniel Wagner
iwd support scanning in AccessPoint mode, thus forward scan requests also when the device is in AccessPoint mode.
Signed-off-by Daniel Wagner <[email protected]>---
Only compile tested :)
plugins/iwd.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 5 deletions(-)plugins/iwd.c +49
-6@@ -633,15 +633,28 @@ static void cm_device_scan_cb(DBusMessage *message, void *user_data) } } -static int cm_device_scan (struct connman_device *device, -struct connman_device_scan_params *params) +static void cm_ap_scan_cb (DBusMessage *message,void *user_data) +{ +const char *path = user_data; +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, path); +if (!iwdap) +return ; + +if (dbus_message_get_type (message) ==DBUS_MESSAGE_TYPE_ERROR ) { +const char *dbus_error =dbus_message_get_error_name (message); + +DBG ("%s scan failed: %s" , path, dbus_error); + } +} + +static int cm_station_scan (struct connman_device *device, +struct connman_device_scan_params *param) {struct iwd_device *iwdd =connman_device_get_data (device);struct iwd_station *iwds; -if (strcmp (iwdd->mode,"station" )) -return -EINVAL ; - iwds =g_hash_table_lookup (stations, iwdd->path);if (!iwds)return -EIO ;@@ -653,6 +666,37 @@ static int cm_device_scan(struct connman_device *device,return -EINPROGRESS ; } +static int cm_ap_scan (struct connman_device *device, +struct connman_device_scan_params *param) +{ +struct iwd_device *iwdd =connman_device_get_data (device); +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, iwdd->path); +if (!iwdap) +return -EIO ; + +if (!g_dbus_proxy_method_call (iwdap->proxy,"Scan" , +NULL , cm_ap_scan_cb,g_strdup (iwdap->path), g_free)) +return -EIO ; + +return -EINPROGRESS ; +} + +static int cm_device_scan (struct connman_device *device, +struct connman_device_scan_params *params) +{ +struct iwd_device *iwdd =connman_device_get_data (device); + +if (!strcmp (iwdd->mode,"station" )) +return cm_station_scan (device, params); + +if (!strcmp (iwdd->mode,"ap" )) +return cm_ap_scan (device, params); + +return -EINVAL ; +} +static struct connman_device_driver device_driver = { .name ="iwd" , .type =CONNMAN_DEVICE_TYPE_WIFI , --
Quoted 3 lines
2.39.0
Daniel,
Thanks for making this patch. I can confirm that this patch compiles and I can run connman with it, but when I enable ap mode with iwd, I cannot get a scan:
~# iwctl device list
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 b8:27:eb:a4:6e:0f on phy0 ap
~# iwctl ap wlan0 scan
~# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------
Name spg4
SignalStrength -4400
Type psk Name ATTcVY9ZWa
SignalStrength -5100
Type psk Name ATT3zFM5gH
SignalStrength -5900
Type psk Name 2WIRE811
SignalStrength -6900
Type psk Name ATTU8Z3d7i
SignalStrength -8400
Type pskSo I am in AP mode and I am connected via WiFi to it.
In connman, though, I do not get any wifi SSIDS:
~# connmanctl services
*AO Wired ethernet_b827ebf13b5a_cable
~# connmanctl enable wifi
wifi is already enabled
~# connmanctl scan wifi
Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Is this how it might work? This is how we do it when we use hostapd to connect instead of iwd.
Keith
Quoted 147 lines · KeithG
Quoted 89 lines · Daniel Wagner
iwd support scanning in AccessPoint mode, thus forward scan requests also when the device is in AccessPoint mode.
Signed-off-by Daniel Wagner <[email protected]>---
Only compile tested :)
plugins/iwd.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 5 deletions(-)plugins/iwd.c +49
-6@@ -633,15 +633,28 @@ static void cm_device_scan_cb(DBusMessage *message, void *user_data) } } -static int cm_device_scan (struct connman_device *device, -struct connman_device_scan_params *params) +static void cm_ap_scan_cb (DBusMessage *message,void *user_data) +{ +const char *path = user_data; +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, path); +if (!iwdap) +return ; + +if (dbus_message_get_type (message) ==DBUS_MESSAGE_TYPE_ERROR ) { +const char *dbus_error =dbus_message_get_error_name (message); + +DBG ("%s scan failed: %s" , path, dbus_error); + } +} + +static int cm_station_scan (struct connman_device *device, +struct connman_device_scan_params *param) {struct iwd_device *iwdd =connman_device_get_data (device);struct iwd_station *iwds; -if (strcmp (iwdd->mode,"station" )) -return -EINVAL ; - iwds =g_hash_table_lookup (stations, iwdd->path);if (!iwds)return -EIO ;@@ -653,6 +666,37 @@ static int cm_device_scan(struct connman_device *device,return -EINPROGRESS ; } +static int cm_ap_scan (struct connman_device *device, +struct connman_device_scan_params *param) +{ +struct iwd_device *iwdd =connman_device_get_data (device); +struct iwd_ap *iwdap; + + iwdap =g_hash_table_lookup (access_points, iwdd->path); +if (!iwdap) +return -EIO ; + +if (!g_dbus_proxy_method_call (iwdap->proxy,"Scan" , +NULL , cm_ap_scan_cb,g_strdup (iwdap->path), g_free)) +return -EIO ; + +return -EINPROGRESS ; +} + +static int cm_device_scan (struct connman_device *device, +struct connman_device_scan_params *params) +{ +struct iwd_device *iwdd =connman_device_get_data (device); + +if (!strcmp (iwdd->mode,"station" )) +return cm_station_scan (device, params); + +if (!strcmp (iwdd->mode,"ap" )) +return cm_ap_scan (device, params); + +return -EINVAL ; +} +static struct connman_device_driver device_driver = { .name ="iwd" , .type =CONNMAN_DEVICE_TYPE_WIFI , --Quoted 3 lines
2.39.0
Daniel,
Thanks for making this patch. I can confirm that this patch compiles and I can run connman with it, but when I enable ap mode with iwd, I cannot get a scan:
~# iwctl device list
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 b8:27:eb:a4:6e:0f on phy0 ap~# iwctl ap wlan0 scan
~# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------Name spg4 SignalStrength -4400 Type pskName ATTcVY9ZWa SignalStrength -5100 Type pskName ATT3zFM5gH SignalStrength -5900 Type pskName 2WIRE811 SignalStrength -6900 Type pskName ATTU8Z3d7i SignalStrength -8400 Type pskSo I am in AP mode and I am connected via WiFi to it.
In connman, though, I do not get any wifi SSIDS:
~# connmanctl services
*AO Wiredethernet_b827ebf13b5a_cable
~# connmanctl enable wifi
wifi is already enabled
~# connmanctl scan wifi
Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Quoted 4 lines
Is this how it might work? This is how we do it when we use hostapd to connect instead of iwd.
Keith
Is this still something that could be done? I can build and test any patches pretty quickly (except for next week).
Keith
Hi KeithG
Quoted 46 lines · KeithG
~# iwctl device list
Quoted 45 lines
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 b8:27:eb:a4:6e:0f on phy0 ap~# iwctl ap wlan0 scan
~# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------Name spg4 SignalStrength -4400 Type pskName ATTcVY9ZWa SignalStrength -5100 Type pskName ATT3zFM5gH SignalStrength -5900 Type pskName 2WIRE811 SignalStrength -6900 Type pskName ATTU8Z3d7i SignalStrength -8400 Type pskSo I am in AP mode and I am connected via WiFi to it.
In connman, though, I do not get any wifi SSIDS:
~# connmanctl services
*AO Wiredethernet_b827ebf13b5a_cable
~# connmanctl enable wifi
wifi is already enabled
~# connmanctl scan wifi
Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
This means the connmanctl tool didnt' receive any response. Do you have the logs from the iwd plugins by any chance (connmand -d plugins/iwd.c).
Quoted 2 lines
Quoted 2 lines
Is this how it might work? This is how we do it when we use hostapd to connect instead of iwd.
It looks like the plugin is still using the wrong API and either iwd doesn't respond or the iwd plugin doesn't handle the error case correctly.
Quoted 2 lines
Is this still something that could be done? I can build and test any patches pretty quickly (except for next week).
I am not that fast sorry :)
Thanks,
Daniel
Quoted 57 lines · Daniel Wagner
Hi KeithG
Quoted 46 lines · KeithG
~# iwctl device list
Quoted 45 lines
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 b8:27:eb:a4:6e:0f on phy0 ap~# iwctl ap wlan0 scan
~# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------Name spg4 SignalStrength -4400 Type pskName ATTcVY9ZWa SignalStrength -5100 Type pskName ATT3zFM5gH SignalStrength -5900 Type pskName 2WIRE811 SignalStrength -6900 Type pskName ATTU8Z3d7i SignalStrength -8400 Type pskSo I am in AP mode and I am connected via WiFi to it.
In connman, though, I do not get any wifi SSIDS:
~# connmanctl services
*AO Wiredethernet_b827ebf13b5a_cable
~# connmanctl enable wifi
wifi is already enabled
~# connmanctl scan wifi
Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.This means the connmanctl tool didnt' receive any response. Do you have the logs from the iwd plugins by any chance (connmand -d
plugins/iwd.c).Quoted 2 lines
Quoted 2 lines
Is this how it might work? This is how we do it when we use hostapd to connect instead of iwd.
Quoted 8 lines
It looks like the plugin is still using the wrong API and either iwd doesn't respond or the iwd plugin doesn't handle the error case correctly.
Quoted 2 lines
Is this still something that could be done? I can build and test any patches pretty quickly (except for next week).
I am not that fast sorry :)
Daniel,
I am finally back at this again. I appreciate your help with this. I have applied your patch to connman and am running iwd 2.4. I enabled the logging of the iwd plugin:
connmand -n -d plugins/iwd.c
I get the same response as before. I am connected to the Pi with iwd in AP mode (only, no ethernet)\
# connmanctl scan wifi Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
when I submit this command, it takes a long time to return and nothing extra appears in the log. Is connman sending a command like 'iwctl station scan' as opposed to 'iwctl ap scan' and 'iwctl ap get-networks'?
It is happily connected and iwd can scan for networks while it is connected in AP mode.
# iwctl ap wlan0 scan
# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------
Name spg4
SignalStrength -3000
Type psk
...the log in the journal is this:
May 11 13:16:40 runeaudio connmand[362]: wlan0 {update} flags 4098 <DOWN>
May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3
operstate 2 <DOWN>
May 11 13:16:40 runeaudio connmand[362]:
plugins/iwd.c:object_removed() net.connman.iwd.Station
/net/connman/iwd/0/3
May 11 13:16:40 runeaudio connmand[362]:
plugins/iwd.c:object_removed() net.connman.iwd.SimpleConfiguration
/net/connman/iwd/0/3
May 11 13:16:40 runeaudio connmand[362]:
plugins/iwd.c:object_removed() net.connman.iwd.DeviceProvisioning
/net/connman/iwd/0/3
May 11 13:16:40 runeaudio connmand[362]:
plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 powered 0
May 11 13:16:40 runeaudio connmand[362]: wlan0 {update} flags 4099 <UP>
May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3
operstate 2 <DOWN>
May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:object_added()
net.connman.iwd.AccessPoint /net/connman/iwd/0/3
May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:create_ap() started 0
May 11 13:16:41 runeaudio connmand[362]:
plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 powered 1
May 11 13:16:41 runeaudio connmand[362]:
plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 mode ap
May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} address
192.168.5.1/24 label wlan0 family 2
May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} route 192.168.5.0
gw 0.0.0.0 scope 253 <LINK>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {update} flags 69635
<UP,LOWER_UP>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
operstate 5 <DORMANT>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} route fe80:: gw
:: scope 0 <UNIVERSE>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {RX} 0 packets 0 bytes
May 11 13:16:41 runeaudio connmand[362]: wlan0 {TX} 1 packets 42 bytes
May 11 13:16:41 runeaudio connmand[362]: wlan0 {update} flags 69699
<UP,RUNNING,LOWER_UP>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
operstate 6 <UP>
May 11 13:16:41 runeaudio connmand[362]: wlan0 {RX} 0 packets 0 bytes
May 11 13:16:41 runeaudio connmand[362]: wlan0 {TX} 1 packets 42 bytes
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3
operstate 6 <UP>
May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:object_added()
net.connman.iwd.AccessPointDiagnostic /net/connman/iwd/0/3
May 11 13:16:41 runeaudio connmand[362]:
plugins/iwd.c:ap_property_change() /net/connman/iwd/0/3 started 1
May 11 13:18:28 runeaudio connmand[362]: wlan0 {RX} 124 packets 12220 bytes
May 11 13:18:28 runeaudio connmand[362]: wlan0 {TX} 93 packets 15083 bytes
May 11 13:18:28 runeaudio connmand[362]: wlan0 {newlink} index 3
address B8:27:EB:52:CC:D0 mtu 1500
May 11 13:18:28 runeaudio connmand[362]: wlan0 {newlink} index 3operstate 6 <UP>
Quoted 160 lines
Quoted 54 lines · KeithG
Quoted 46 lines
~# iwctl device list
Quoted 45 lines
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 b8:27:eb:a4:6e:0f on phy0 ap~# iwctl ap wlan0 scan
~# iwctl ap wlan0 get-networks
Networks
--------------------------------------------------------------------------------
Property Value
--------------------------------------------------------------------------------Name spg4 SignalStrength -4400 Type pskName ATTcVY9ZWa SignalStrength -5100 Type pskName ATT3zFM5gH SignalStrength -5900 Type pskName 2WIRE811 SignalStrength -6900 Type pskName ATTU8Z3d7i SignalStrength -8400 Type pskSo I am in AP mode and I am connected via WiFi to it.
In connman, though, I do not get any wifi SSIDS:
~# connmanctl services
*AO Wiredethernet_b827ebf13b5a_cable
~# connmanctl enable wifi
wifi is already enabled
~# connmanctl scan wifi
Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.This means the connmanctl tool didnt' receive any response. Do you have the logs from the iwd plugins by any chance (connmand -d
plugins/iwd.c).Quoted 2 lines
Quoted 2 lines
Is this how it might work? This is how we do it when we use hostapd to connect instead of iwd.
Quoted 8 lines
It looks like the plugin is still using the wrong API and either iwd doesn't respond or the iwd plugin doesn't handle the error case correctly.
Quoted 2 lines
Is this still something that could be done? I can build and test any patches pretty quickly (except for next week).
I am not that fast sorry :)
Daniel,
I am finally back at this again. I appreciate your help with this. I have applied your patch to connman and am running iwd 2.4. I enabled the logging of the iwd plugin:
connmand -n -dplugins/iwd.c
I get the same response as before. I am connected to the Pi with iwd in AP mode (only, no ethernet)\# connmanctl scan wifi Error /net/connman/technology/wifi: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.when I submit this command, it takes a long time to return and nothing extra appears in the log. Is connman sending a command like 'iwctl station scan' as opposed to 'iwctl ap scan' and 'iwctl ap get-networks'?
It is happily connected and iwd can scan for networks while it is connected in AP mode.
# iwctl ap wlan0 scan # iwctl ap wlan0 get-networks Networks -------------------------------------------------------------------------------- Property Value -------------------------------------------------------------------------------- Name spg4 SignalStrength -3000 Type psk ...the log in the journal is this:
May 11 13:16:40 runeaudio connmand[362]: wlan0 {update} flags 4098 <DOWN> May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3 operstate 2 <DOWN> May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:object_removed() net.connman.iwd.Station /net/connman/iwd/0/3 May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:object_removed() net.connman.iwd.SimpleConfiguration /net/connman/iwd/0/3 May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:object_removed() net.connman.iwd.DeviceProvisioning /net/connman/iwd/0/3 May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 powered 0 May 11 13:16:40 runeaudio connmand[362]: wlan0 {update} flags 4099 <UP> May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:16:40 runeaudio connmand[362]: wlan0 {newlink} index 3 operstate 2 <DOWN> May 11 13:16:40 runeaudio connmand[362]: plugins/iwd.c:object_added() net.connman.iwd.AccessPoint /net/connman/iwd/0/3 May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:create_ap() started 0 May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 powered 1 May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:device_property_change() /net/connman/iwd/0/3 mode ap May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} address 192.168.5.1/24 label wlan0 family 2 May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} route 192.168.5.0 gw 0.0.0.0 scope 253 <LINK> May 11 13:16:41 runeaudio connmand[362]: wlan0 {update} flags 69635 <UP,LOWER_UP> May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 operstate 5 <DORMANT> May 11 13:16:41 runeaudio connmand[362]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE> May 11 13:16:41 runeaudio connmand[362]: wlan0 {RX} 0 packets 0 bytes May 11 13:16:41 runeaudio connmand[362]: wlan0 {TX} 1 packets 42 bytes May 11 13:16:41 runeaudio connmand[362]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP> May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 operstate 6 <UP> May 11 13:16:41 runeaudio connmand[362]: wlan0 {RX} 0 packets 0 bytes May 11 13:16:41 runeaudio connmand[362]: wlan0 {TX} 1 packets 42 bytes May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:16:41 runeaudio connmand[362]: wlan0 {newlink} index 3 operstate 6 <UP> May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:object_added() net.connman.iwd.AccessPointDiagnostic /net/connman/iwd/0/3 May 11 13:16:41 runeaudio connmand[362]: plugins/iwd.c:ap_property_change() /net/connman/iwd/0/3 started 1 May 11 13:18:28 runeaudio connmand[362]: wlan0 {RX} 124 packets 12220 bytes May 11 13:18:28 runeaudio connmand[362]: wlan0 {TX} 93 packets 15083 bytes May 11 13:18:28 runeaudio connmand[362]: wlan0 {newlink} index 3 address B8:27:EB:52:CC:D0 mtu 1500 May 11 13:18:28 runeaudio connmand[362]: wlan0 {newlink} index 3
Quoted 1 line
operstate 6 <UP>
I neglected to say which version of connman I am using. I am running connman 1.41
with the patch earlier in this thread applied.
Keith