diff options
| author | John Marino <marino@FreeBSD.org> | 2014-10-13 12:56:04 +0000 |
|---|---|---|
| committer | John Marino <marino@FreeBSD.org> | 2014-10-13 12:56:04 +0000 |
| commit | 51b8291f38e20409683a897ce63939f9c1d333e0 (patch) | |
| tree | 3dea70dc296010f93b54c83b1008eee553811355 /security/wpa_supplicant/files/patch-wpa__supplicant_wpa__supplicant.c | |
| parent | Remove @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_wpa__supplicant.c')
| -rw-r--r-- | security/wpa_supplicant/files/patch-wpa__supplicant_wpa__supplicant.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__supplicant.c b/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__supplicant.c new file mode 100644 index 000000000000..36f894fd193a --- /dev/null +++ b/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__supplicant.c @@ -0,0 +1,11 @@ +--- wpa_supplicant/wpa_supplicant.c.orig 2014-10-09 14:41:31 UTC ++++ wpa_supplicant/wpa_supplicant.c +@@ -4098,7 +4098,7 @@ struct wpa_global * wpa_supplicant_init( + if (params == NULL) + return NULL; + +-#ifdef CONFIG_DRIVER_NDIS ++#ifdef XXXCONFIG_DRIVER_NDIS + { + void driver_ndis_init_ops(void); + driver_ndis_init_ops(); |
