1 --- wpa_supplicant/main.c.orig	2016-11-05 20:56:30 UTC
2 +++ wpa_supplicant/main.c
3 @@ -66,7 +66,7 @@ static void usage(void)
4  	       "  -c = Configuration file\n"
5  	       "  -C = ctrl_interface parameter (only used if -c is not)\n"
6  	       "  -d = increase debugging verbosity (-dd even more)\n"
7 -	       "  -D = driver name (can be multiple drivers: nl80211,wext)\n"
8 +	       "  -D = driver name (can be multiple drivers: bsd,wired)\n"
9  	       "  -e = entropy file\n"
10  #ifdef CONFIG_DEBUG_FILE
11  	       "  -f = log output to debug file instead of stdout\n"
12 @@ -105,8 +105,7 @@ static void usage(void)
13  	       "  -W = wait for a control interface monitor before starting\n");
14 
15  	printf("example:\n"
16 -	       "  wpa_supplicant -D%s -iwlan0 -c/etc/wpa_supplicant.conf\n",
17 -	       wpa_drivers[0] ? wpa_drivers[0]->name : "nl80211");
18 +                "  wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf\n");
19  #endif /* CONFIG_NO_STDOUT_DEBUG */
20  }
21 
22 @@ -199,6 +198,11 @@ int main(int argc, char *argv[])
23 
24  	wpa_supplicant_fd_workaround(1);
25 
26 +#ifdef CONFIG_DRIVER_NDIS
27 +	void driver_ndis_init_ops(void);
28 +	driver_ndis_init_ops();
29 +#endif /* CONFIG_DRIVER_NDIS */
30 +
31  	for (;;) {
32  		c = getopt(argc, argv,
33  			   "b:Bc:C:D:de:f:g:G:hi:I:KLMm:No:O:p:P:qsTtuvW");
34