From 12a87893408ed55f8b4500662a972f8ebbf9ca78 Mon Sep 17 00:00:00 2001 From: dracode Date: Mon, 15 Apr 2024 22:38:21 -0400 Subject: [PATCH] aircrack-ng: backport patch to fix gpsd option for airodump-ng `airodump-ng --gpsd` does not work in airodump 1.7 release. It's fixed in the current rolling version, but there's been no new release in nearly two years and no sign of a new release being imminent. So, this is a patch to fix the OpenWrt version; it's a direct copy of the official patch at https://github.com/aircrack-ng/aircrack-ng/commit/6d4539c1cefc12ce4c37f3a5e2ef694152894393 Signed-off-by: dracode --- .../patches/106-backport-gpsd-fix-airodump.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/aircrack-ng/patches/106-backport-gpsd-fix-airodump.patch diff --git a/net/aircrack-ng/patches/106-backport-gpsd-fix-airodump.patch b/net/aircrack-ng/patches/106-backport-gpsd-fix-airodump.patch new file mode 100644 index 0000000000..8c024d5f2d --- /dev/null +++ b/net/aircrack-ng/patches/106-backport-gpsd-fix-airodump.patch @@ -0,0 +1,12 @@ +diff -dur aircrack-ng-1.7/src/airodump-ng/airodump-ng.c aircrack-ng-1.7-bugfix/src/airodump-ng/airodump-ng.c +--- a/src/airodump-ng/airodump-ng.c 2022-05-10 19:01:46.000000000 -0400 ++++ b/src/airodump-ng/airodump-ng.c 2024-04-03 17:37:35.496429825 -0400 +@@ -4429,7 +4429,7 @@ + char * vcursor = value; + int ret = 0; + +- if (buffer == NULL || *buffer == '\0' || name == NULL || *name != '\0' ++ if (buffer == NULL || *buffer == '\0' || name == NULL || *name == '\0' + || value == NULL) + { + return (0);