summaryrefslogtreecommitdiff
path: root/security/wpa_supplicant/files/patch-wpa__supplicant_main.c
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-10-13 12:56:04 +0000
committerJohn Marino <marino@FreeBSD.org>2014-10-13 12:56:04 +0000
commit51b8291f38e20409683a897ce63939f9c1d333e0 (patch)
tree3dea70dc296010f93b54c83b1008eee553811355 /security/wpa_supplicant/files/patch-wpa__supplicant_main.c
parentRemove @dirrm from my ports (diff)
wpa/supplicant: Fix driver list with NDIS, take 2
It turns out the driver list was only showing "null" for NDIS when -h (help) or an unknown switch was passed to wpa_supplicant. The cause is that the NDIS driver is the only that that has to be initialized, and the initialization wasn't occurring in the above case. The fix is the move the NDIS driver initialization before the command switches are examined in case wpa_supplicant aborts to usage early.
Diffstat (limited to 'security/wpa_supplicant/files/patch-wpa__supplicant_main.c')
-rw-r--r--security/wpa_supplicant/files/patch-wpa__supplicant_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/wpa_supplicant/files/patch-wpa__supplicant_main.c b/security/wpa_supplicant/files/patch-wpa__supplicant_main.c
new file mode 100644
index 000000000000..7ddc41de535d
--- /dev/null
+++ b/security/wpa_supplicant/files/patch-wpa__supplicant_main.c
@@ -0,0 +1,14 @@
+--- wpa_supplicant/main.c.orig 2014-10-09 14:41:31 UTC
++++ wpa_supplicant/main.c
+@@ -173,6 +173,11 @@ int main(int argc, char *argv[])
+
+ wpa_supplicant_fd_workaround(1);
+
++#ifdef CONFIG_DRIVER_NDIS
++ void driver_ndis_init_ops(void);
++ driver_ndis_init_ops();
++#endif /* CONFIG_DRIVER_NDIS */
++
+ for (;;) {
+ c = getopt(argc, argv,
+ "b:Bc:C:D:de:f:g:G:hi:I:KLm:No:O:p:P:qsTtuvW");