SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
security/wpa_supplicant/patches/patch-wpa_supplicant_scan_c
Normal file
21
security/wpa_supplicant/patches/patch-wpa_supplicant_scan_c
Normal file
|
@ -0,0 +1,21 @@
|
|||
ap_scan is not supported on OpenBSD.
|
||||
|
||||
Index: wpa_supplicant/scan.c
|
||||
--- wpa_supplicant/scan.c.orig
|
||||
+++ wpa_supplicant/scan.c
|
||||
@@ -869,6 +869,15 @@ static void wpa_supplicant_scan(void *eloop_ctx, void
|
||||
wpas_notify_ap_scan_changed(wpa_s);
|
||||
}
|
||||
|
||||
+#ifdef __OpenBSD__
|
||||
+ if (wpa_s->conf->ap_scan != 0) {
|
||||
+ wpa_dbg(wpa_s, MSG_DEBUG, "Using OpenBSD - "
|
||||
+ "overriding ap_scan configuration");
|
||||
+ wpa_s->conf->ap_scan = 0;
|
||||
+ wpas_notify_ap_scan_changed(wpa_s);
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
if (wpa_s->conf->ap_scan == 0) {
|
||||
wpa_supplicant_gen_assoc_event(wpa_s);
|
||||
return;
|
Loading…
Add table
Add a link
Reference in a new issue