openwrt/package/utils/ucode/patches/010-Revert-nl80211-read-all-pending-event-messages.patch
Felix Fietkau 7dd62db9a9
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
ucode: revert a broken commit
It causes an infinite loop when polling nl80211 netlink sockets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-10-14 14:54:26 +02:00

22 lines
666 B
Diff

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 *