aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Declare wpa_drivers in src/drivers/driver.hJouni Malinen2013-12-311-2/+0
| | | | | | This avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix non-P2P build after the P2P_DEVICE changesJouni Malinen2013-06-301-0/+2
| | | | | | | | Commit c68f6200a72f2b33304f583859b09e57757b9d2a added a call to a function that exists only for P2P builds. Fix that with #ifdef CONFIG_P2P. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Create P2P Device interface if supportedArend van Spriel2013-06-301-1/+12
| | | | | | | | | | | | | | If the capability flag of the driver indicates a dedicated P2P Device is supported, a P2P Device interface is created. Create the P2P Device in main interface creation loop when the added interface flags support and P2P supplicant is not yet initialized avoiding recursion of add_interface. Do not register l2_packet for P2P Device interface (both for EAPOL and for TDLS). Signed-hostap: Arend van Spriel <arend@broadcom.com>
* wpa_supplicant: Add -G argument to specify global ctrl groupJouni Malinen2013-05-181-2/+7
| | | | | | | The optional -G<group> command line argument can be used to specify the group that can access the global control interface. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Default to nl80211 instead of wextJouni Malinen2013-04-291-1/+1
| | | | | | | | | | nl80211 has obsoleted WEXT as the preferred kernel interface for controlling wireless drivers. Update wpa_supplicant driver interface list order so that nl80211 gets used first if both nl80211 and wext interfaces are included in the build. In addition, update README to reflect the fact that WEXT is obsolete. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wpa_supplicant: Add option -I for additional config fileDmitry Shmidt2013-04-231-2/+7
| | | | | | | | This option can be used only for global parameters that are not going to be changed from settings. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* Clean up the closed stdin/stdout/stderr workaround to close socketsJouni Malinen2012-08-191-8/+20
| | | | | | | Close the workaround sockets when wpa_supplicant exists to avoid hitting resource leak warnings. Signed-hostap: Jouni Malinen <j@w1.fi>
* Convert os_realloc() for an array to use os_realloc_array()Jouni Malinen2012-08-131-2/+2
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Print initialization information on startupBen Greear2012-04-061-0/+3
| | | | | | | This lets someone know if they have a log file that properly starts at the beginning. Signed-hostap: Ben Greear <greearb@candelatech.com>
* debug: Add option to log to Linux tracingJohannes Berg2012-03-311-1/+11
| | | | | | | | | | | | Add the option (-T) to wpa_supplicant to log all debug messages into the kernel tracing, allowing to aggregate kernel debugging with wpa_supplicant debugging and recording all with trace-cmd. Since tracing has relatively low overhead and can be filtered afterwards, record all messages regardless of log level. However, it will honor the -K option and not record key material by default. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Select the BSD license terms as the only license alternativeJouni Malinen2012-02-111-1/+1
| | | | | | | | | | | | | | | Simplify licensing terms for hostap.git by selecting the BSD license alternative for any future distribution. This drops the GPL v2 alternative from distribution terms and from contribution requirements. The BSD license alternative that has been used in hostap.git (the one with advertisement clause removed) is compatible with GPL and as such the software in hostap.git can still be used with GPL projects. In addition, any new contribution to hostap.git is expected to be licensed under the BSD terms that allow the changes to be merged into older hostap repositories that still include the GPL v2 alternative. Signed-hostap: Jouni Malinen <j@w1.fi>
* random: Add support for maintaining internal entropy store over restartsJouni Malinen2011-05-311-3/+8
| | | | | | | This can be used to avoid rejection of first two 4-way handshakes every time hostapd (or wpa_supplicant in AP/IBSS mode) is restarted. A new command line parameter, -e, can now be used to specify an entropy file that will be used to maintain the needed state.
* dbus: Use CONFIG_DBUS instead of old||newJouni Malinen2010-01-011-4/+4
|
* dbus: Enable -u option when only the new DBus API is includedWitold Sowa2009-12-031-4/+4
|
* Allow driver and ctrl_interface parameters to be overriddenJouni Malinen2009-11-041-1/+10
| | | | | | | | | | | New wpa_supplicant command line options -o<driver> and -O<ctrl> can now be used to override the parameters received in add interface command from dbus or global ctrl_interface. This can be used, e.g., to enable control interface when using NetworkManager (add -O/var/run/wpa_supplicant into the Exec parameter in /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service). Similarly, this can be used to use another driver wrapper with NetworkManager (e.g., -onl80211 to replace WEXT with nl80211).
* Merge wpa_supplicant and hostapd driver wrapper implementationsJouni Malinen2009-04-091-6/+5
| | | | | | | | This commit merges the driver_ops structures and implementations from hostapd/driver*.[ch] into src/drivers. This is only an initial step and there is room for number of cleanups to share code between the hostapd and wpa_supplicant parts of the wrappers to avoid unnecessary source code duplication.
* Add preliminary hostapd data structure initialization for AP modeJouni Malinen2009-03-261-0/+3
| | | | | | | | wpa_supplicant can now initialize hostapd data structures when mode=2 is used to set up an AP. The hostapd configuration is not yet set based on wpa_supplicant network configuration block. In addition, the glue code for hostapd driver_ops needs number of functions that will be needed for AP functionality.
* Add support for wpa_supplicant syslog outputSam Leffler2009-03-021-5/+15
| | | | | Enable for build: CFLAGS += -DCONFIG_DEBUG_SYSLOG in .config Enable at runtime: -s on command line
* Avoid using #ifdef inside printf stringJouni Malinen2009-02-151-8/+8
| | | | This makes it easier to use a preprocessor macro for printf.
* Allow multiple driver wrappers to be specified on command lineJouni Malinen2009-02-141-1/+1
| | | | | | For example, -Dnl80211,wext could be used to automatically select between nl80211 and wext. The first driver wrapper that is able to initialize the interface will be used.
* Mark functions static if not used elsewhere and use proper prototypesJouni Malinen2009-01-031-13/+0
|
* Remove the -w option from help outputKel Modderman2008-03-311-1/+1
| | | | Signed-off-by: Kel Modderman <kel@otaku42.de>
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-281-0/+277