aboutsummaryrefslogtreecommitdiff
path: root/security/wpa_supplicant
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-05-16 02:41:29 +0000
committerCy Schubert <cy@FreeBSD.org>2019-05-16 02:41:29 +0000
commit08d3295b270992b14c8786f79a4a1fb6e6f49387 (patch)
treee0f8528abd29fdedd1d6b150f61fef6d92c2fdb4 /security/wpa_supplicant
parentc8707a8277a6bbbb3b78d240acdeb373cba76102 (diff)
downloadports-08d3295b270992b14c8786f79a4a1fb6e6f49387.tar.gz
ports-08d3295b270992b14c8786f79a4a1fb6e6f49387.zip
Notes
Diffstat (limited to 'security/wpa_supplicant')
-rw-r--r--security/wpa_supplicant/files/patch-wpa__supplicant_scan.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/security/wpa_supplicant/files/patch-wpa__supplicant_scan.c b/security/wpa_supplicant/files/patch-wpa__supplicant_scan.c
deleted file mode 100644
index f307592343b5..000000000000
--- a/security/wpa_supplicant/files/patch-wpa__supplicant_scan.c
+++ /dev/null
@@ -1,32 +0,0 @@
---- wpa_supplicant/scan.c.orig 2015-09-27 19:02:05 UTC
-+++ wpa_supplicant/scan.c
-@@ -1657,7 +1657,7 @@ struct wpabuf * wpa_scan_get_vendor_ie_m
- * better. */
- static int wpa_scan_result_compar(const void *a, const void *b)
- {
--#define MIN(a,b) a < b ? a : b
-+#define MINAB(a,b) a < b ? a : b
- struct wpa_scan_res **_wa = (void *) a;
- struct wpa_scan_res **_wb = (void *) b;
- struct wpa_scan_res *wa = *_wa;
-@@ -1686,9 +1686,9 @@ static int wpa_scan_result_compar(const
-
- if (wa->flags & wb->flags & WPA_SCAN_LEVEL_DBM) {
- snr_a_full = wa->snr;
-- snr_a = MIN(wa->snr, GREAT_SNR);
-+ snr_a = MINAB(wa->snr, GREAT_SNR);
- snr_b_full = wb->snr;
-- snr_b = MIN(wb->snr, GREAT_SNR);
-+ snr_b = MINAB(wb->snr, GREAT_SNR);
- } else {
- /* Level is not in dBm, so we can't calculate
- * SNR. Just use raw level (units unknown). */
-@@ -1711,7 +1711,7 @@ static int wpa_scan_result_compar(const
- if (snr_b_full == snr_a_full)
- return wb->qual - wa->qual;
- return snr_b_full - snr_a_full;
--#undef MIN
-+#undef MINAB
- }
-
-