git: wpa_supplicant: Fix driver list with -h or invalid command switch

John Marino marino at crater.dragonflybsd.org
Mon Oct 13 06:15:12 PDT 2014


commit ca9ea60bdc255544730e85aee5b6bda03c0f7c74
Author: John Marino <draco at marino.st>
Date:   Mon Oct 13 15:09:17 2014 +0200

    wpa_supplicant: Fix driver list with -h or invalid command switch
    
    If wpa_supplicant was given -h (help) argument to show usage, the NDIS
    driver displayed as "(null)".  If wpa_supplicant was given no arguments,
    the usage display would also appear, but this time the NDIS driver was
    listed.
    
    It seems that the NDIS driver is the only one that must be initialized,
    and this initialization was getting skipped on unrecognized commands and
    the help command.  The solution is to move the initialization of the
    driver to occur before the commands are checked so that the driver data
    will always be available.

Summary of changes:
 contrib/wpa_supplicant/README.DRAGONFLY                | 3 +++
 contrib/wpa_supplicant/wpa_supplicant/main.c           | 5 +++++
 contrib/wpa_supplicant/wpa_supplicant/wpa_supplicant.c | 2 +-
 3 files changed, 9 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca9ea60bdc255544730e85aee5b6bda03c0f7c74


-- 
DragonFly BSD source repository



More information about the Commits mailing list