]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r347642:
authorCy Schubert <cy@FreeBSD.org>
Tue, 28 May 2019 02:00:09 +0000 (02:00 +0000)
committerCy Schubert <cy@FreeBSD.org>
Tue, 28 May 2019 02:00:09 +0000 (02:00 +0000)
commitf0103b575942a493b666d1ac8c918ad3339d3db7
tree47fdf93fb81e5b506e8df9e8a733ea52386a8d0b
parent6f003a7a7197d2ea5cb0f992fad49f7b83571bf0
MFC r347642:

The driver list prints "(null)" for the NDIS driver when -h (help) or
an unknown switch is passed outputting the command usage. This is
because the NDIS driver is uninitialized when usage help is printed.
To resolve this we initialize the driver prior to the possibility of
printing the usage help message.

Obtained from: The wpa_supplicant port
contrib/wpa/wpa_supplicant/main.c
contrib/wpa/wpa_supplicant/wpa_supplicant.c