aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-02-22 07:24:51 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-02-22 10:15:07 -0600
commitd4c68d7d8384612abe8df4134a5fc47a19f0e914 (patch)
tree5f7204ca07816ef916aa25bd9d89cb0443716bcc
parent77cdbd186bf3282207979d6731c73c0d8de5386b (diff)
netdev: add notice events for connection timeouts
The information specific to auth/assoc/connect timeouts isn't communicated to station so emit the notice events within netdev. We could communicate this to station by adding separate netdev events, but this does not seem worth it for this use case as these notice events aren't strictly limited to station.
-rw-r--r--src/netdev.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/netdev.c b/src/netdev.c
index 48fb15df9..8a7ff0920 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -2639,7 +2639,8 @@ static void netdev_connect_event(struct l_genl_msg *msg, struct netdev *netdev)
}
if (timeout) {
- l_warn("connect event timed out, reason=%u", timeout_reason);
+ iwd_notice(IWD_NOTICE_CONNECT_TIMEOUT, "reason: %u",
+ timeout_reason);
goto error;
}
@@ -2931,7 +2932,7 @@ static void netdev_authenticate_event(struct l_genl_msg *msg,
while (l_genl_attr_next(&attr, &type, &len, &data)) {
switch (type) {
case NL80211_ATTR_TIMED_OUT:
- l_warn("authentication event timed out");
+ iwd_notice(IWD_NOTICE_AUTH_TIMEOUT);
if (auth_proto_auth_timeout(netdev->ap))
return;
@@ -3032,7 +3033,7 @@ static void netdev_associate_event(struct l_genl_msg *msg,
while (l_genl_attr_next(&attr, &type, &len, &data)) {
switch (type) {
case NL80211_ATTR_TIMED_OUT:
- l_warn("association timed out");
+ iwd_notice(IWD_NOTICE_ASSOC_TIMEOUT);
if (auth_proto_assoc_timeout(netdev->ap))
return;