aboutsummaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2024-02-13 18:26:31 -0300
committerFelix Fietkau <nbd@nbd.name>2024-04-04 12:12:43 +0200
commit92379080ead2b0bd70f0afe25c68547dbc17f768 (patch)
tree3c31e1c6c41ddadcf797ee671b60be39b320eac5 /package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
parent3f5a9e80da4a0edae4c45cf370b2846ca6785fae (diff)
hostapd: adjust patches to work with git am
This adds From:, Date: and Subject: to patches, allowing one to run 'git am' to import the patches to a hostapd git repository. From: and Date: fields were taken from the OpenWrt commit where the patches were first introduced. Most of the Subject: also followed suit, except for: - 300-noscan.patch: Took the description from the LuCI web interface - 350-nl80211_del_beacon_bss.patch: Used the file name The order of the files in the patch was changed to match what git format-patch does. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch')
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch b/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
index e9083f6ecc..b7d2e2b659 100644
--- a/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
+++ b/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
@@ -1,3 +1,14 @@
+From: Denton Gentry <denny@geekhold.com>
+Date: Wed, 30 May 2018 15:05:42 +0000
+Subject: [PATCH] hostapd: make cli treat UNKNOWN COMMAND as failing
+
+Avoid infinite loop at 100% CPU when running hostapd_cli
+if CONFIG_CTRL_IFACE_MIB is not defined.
+
+ _newselect(4, [3], NULL, NULL, ...)
+ recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
+ sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24
+
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -757,7 +757,7 @@ static int wpa_ctrl_command_sta(struct w