Author: adrian
Date: Thu Nov 26 17:26:28 2015
New Revision: 291366
URL: https://svnweb.freebsd.org/changeset/base/291366

Log:
  [wpa] bring up interface in ap_mode=2
  
  This is required for WPA-NONE operation.
  
  PR:           bin/203086
  Submitted by: avos@

Modified:
  head/contrib/wpa/src/drivers/driver_bsd.c

Modified: head/contrib/wpa/src/drivers/driver_bsd.c
==============================================================================
--- head/contrib/wpa/src/drivers/driver_bsd.c   Thu Nov 26 13:04:58 2015        
(r291365)
+++ head/contrib/wpa/src/drivers/driver_bsd.c   Thu Nov 26 17:26:28 2015        
(r291366)
@@ -1102,6 +1102,13 @@ wpa_driver_bsd_associate(void *priv, str
                          params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0)
                return -1;
 
+       /*
+        * NB: interface must be marked UP for association
+        * or scanning (ap_scan=2)
+        */
+       if (bsd_ctrl_iface(drv, 1) < 0)
+               return -1;
+
        os_memset(&mlme, 0, sizeof(mlme));
        mlme.im_op = IEEE80211_MLME_ASSOC;
        if (params->ssid != NULL)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to