summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-10-14 11:03:11 +0000
committerFelix Fietkau2025-10-14 12:54:26 +0000
commit7dd62db9a9006d9f3aa323fffca37ca7e80d590e (patch)
tree737ae9882a94839196189bc6d88fce4ea3839560
parent3632c0d3ce92802867b4aca9062c1d9b20f7b675 (diff)
downloadopenwrt-7dd62db9a9006d9f3aa323fffca37ca7e80d590e.tar.gz
ucode: revert a broken commit
It causes an infinite loop when polling nl80211 netlink sockets Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/utils/ucode/patches/010-Revert-nl80211-read-all-pending-event-messages.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/utils/ucode/patches/010-Revert-nl80211-read-all-pending-event-messages.patch b/package/utils/ucode/patches/010-Revert-nl80211-read-all-pending-event-messages.patch
new file mode 100644
index 0000000000..0af66b25ad
--- /dev/null
+++ b/package/utils/ucode/patches/010-Revert-nl80211-read-all-pending-event-messages.patch
@@ -0,0 +1,22 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Tue, 14 Oct 2025 10:59:26 +0000
+Subject: [PATCH] Revert "nl80211: read all pending event messages"
+
+This reverts commit 387880348c89b5be54ddf13b9543b19266dd02ae.
+This commit is broken and causes infinite polling on netlink sockets.
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+
+--- a/lib/nl80211.c
++++ b/lib/nl80211.c
+@@ -2722,8 +2722,7 @@ uc_nl_request(uc_vm_t *vm, size_t nargs)
+ static void
+ uc_nl_listener_cb(struct uloop_fd *fd, unsigned int events)
+ {
+- while (nl_recvmsgs(nl80211_conn.evsock, nl80211_conn.evsock_cb) == 0)
+- ;
++ nl_recvmsgs(nl80211_conn.evsock, nl80211_conn.evsock_cb);
+ }
+
+ static uc_value_t *