path: root/wpa_supplicant
Commit message (Collapse)AuthorAgeFilesLines
* Update nmake.mak to match with current filesJouni Malinen2009-02-151-1/+2
| | | | (cherry picked from commit caf31598317a79debaaf32a698fcb9a94ce72eed)
* Improved 'make install' (use BINDIR/LIBDIR, install shared objects)Daniel Mierswa2009-02-151-2/+6
| | | | (cherry picked from commit d94d4bafbb43699d323d6f6e3e404000b3f0a7b4)
* Allow the privsep driver to pass the set_country to the real driverDaniel Mierswa2009-02-151-1/+19
| | | | (cherry picked from commit 6301cc5d385ae4e3b4aa74ca863e034b8d91c326)
* Removed an obsolete comment about use of external program for EAPJouni Malinen2009-02-151-2/+1
| | | | (cherry picked from commit f6190d376d710b5c60665be5bbfdfed315cfcdd0)
* Fix test-sha256 buildJouni Malinen2009-02-152-2/+3
| | | | (cherry picked from commit 4225097c5a22db0223207bb318d93ecbff924a58)
* Fixed a copy-paste error in a function documentationJouni Malinen2009-02-151-1/+1
| | | | (cherry picked from commit 073ab58ff5ec83d68099049012a248a84e1eb16a)
* Send a dbus reply only if requested by the callerHelmut Schaa2009-02-151-2/+4
| | | | | | | | | | | | | | | | | | wpa_supplicant should not send a dbus reply as response to a method call if no reply was requested by the caller. Sending a reply even if not requested is basically no problem but triggers dbus warnings like the one below. Feb 9 07:31:23 linux-gvjr dbus-daemon: Rejected send message, 2 matched rules; type="error", sender=":1.129" (uid=0 pid=30228 comm="/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wp") interface="(unset)" member="(unset)" error name="fi.epitest.hostap.WPASupplicant.InvalidInterface" requested_reply=0 destination=":1.128" (uid=0 pid=30226 comm="/usr/sbin/NetworkManager ")) Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> (cherry picked from commit c3f5b1e16d119392ec30e3b5a0d015ee2aa3d664)
* Fix MinGW build with CONFIG_EAP_TNC=yJouni Malinen2009-02-081-0/+2
| | | | | MinGW does not use -ldl so do not add this unconditionally. (cherry picked from commit 53c256a4766b9e85317fca763c25a3f11c792679)
* Fix privsep build with CONFIG_CLIENT_MLME=yJouni Malinen2009-02-081-2/+50
| | | | | | Add wpa_supplicant_sta_free_hw_features() and wpa_supplicant_sta_rx() for driver wrappers in wpa_priv. (cherry picked from commit 96c7c3072de6699dfbafa81c94af511abb49186a)
* Include wpabuf.o in wpa_priv buildDaniel Mierswa2009-02-081-0/+1
| | | | | | If you choose to use CONFIG_PRIVSEP=y, the wpabuf functions seem to miss. The attached patch is against trunk and should probably fix it. (cherry picked from commit 716d543d5c1a0ee8cbec6bda6489913cdfa6dbec)
* Removed CONFIG_EAP_WSC=dyn optionJouni Malinen2009-02-081-5/+0
| | | | | | | Build EAP-WSC dynamically does not make much sense and with the dependencies to WPS code from number of places resolving this is not trivial. It is simpler to just remove this option. (cherry picked from commit 6dbcd00912b3fc3984d1402170340b61ca83f933)
* Fix building dynamic EAP peer modulesPavel Roskin2009-02-081-1/+1
| | | | | | Strip directory name from the target in the pattern rule for dynamic modules. Remove dynamic modules on "make clean". (cherry picked from commit 4c2660c2b0a04ebd2eee968f356188ec31f9b635)
* Added CONFIG_WPS_UPNP for wpa_supplicant testsJouni Malinen2009-02-081-0/+10
| | | | | | For now, this is just an undocumented build option to make it possible to build ../src/wps/*.o in a way that matches with hostapd needs. (cherry picked from commit e1c7954d5dc7c1d5a66e04808689fc004da37bad)
* Explicitly link against libdl when including TNC supportDaniel Mierswa2009-02-081-0/+1
| | | | | | | | If you don't choose OpenSSL as TLS implementation and choose to enable CONFIG_EAP_TNC you have to link against libdl. The OpenSSL libraries implicitly link against them, so this might be a reason why it wasn't noticed yet. I assume the same applies to hostapd. (cherry picked from commit b77eab282a2820fd8d67785eb2e045aa59f49b82)
* Fixed scan buffer increasing with WEXTJouni Malinen2009-02-081-0/+2
| | | | | | | | | | | | | | | We can now handle up to 65535 byte result buffer which is the maximum due to WEXT using 16-bit length field. Previously, this was limited to 32768 bytes in practice even through we tried with 65536 and 131072 buffers which we just truncated into 0 in the 16-bit variable. This more or less doubles the number of BSSes we can received from scan results. (cherry picked from commit 42f1ee7d1fae8a67a2a48adfda19f9aafc3fef32) Conflicts: hostapd/driver_nl80211.c
* Fix a segfault in wpa_supplicant_deinitHelmut Schaa2009-02-081-1/+1
| | | | | | | | | | If wpa_supplicant is started with -u but the DBus service is already registered wpa_supplicant will bail out. However, it will segfault in wpa_supplicant_deinit because global->drv_priv wasn't allocated yet. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> (cherry picked from commit 81e59f1070f223c4b244a20aa496b79d9cdb5961)
* Add CONFIG_DRIVER_NL80211 and clarify client MLME limitationsJouni Malinen2009-02-081-8/+6
| | | | | | | This is based on a patch from Pavel Roskin <proski@gnu.org>, but with the WIRELESS_DEV part removed instead of moved since it does not apply anymore. Additional note on client MLME limitations was also added. (cherry picked from commit 421b4ba50a5ad3ba99ad8a654f96850835271086)
* Use better examples for MadWifi path in defconfig, clarify commentsPavel Roskin2009-02-081-2/+2
| | | | | | | | | MadWifi is unlikely to be in ../head relative to hostapd or wpa_supplicant, as it would be inside the hostap git repository. MadWifi sources are more likely to be in a directory called "madwifi" and residing outside the hostap repository. Using "madwifi" also demonstrates that the top-level madwifi directory is needed. (cherry picked from commit e7e9c46e55b4ee3cdbbdd91900220e4f24ceb67c)
* wpa_gui-qt4: Disable WPS tab in the same way as the menu itemJouni Malinen2009-02-081-2/+11
| | | | | | | Disable by default and only enable if the running wpa_supplicant has support for WPS. This is based on a patch from Kel Modderman <kel@otaku42.de>. (cherry picked from commit 97642d73ee12d4956c97989c9e407e9e64698f23)
* Add comments on the new Broadcom driver not using driver_broadcom.cJouni Malinen2009-02-082-3/+9
| | | | | | | The newer Broadcom driver ("hybrid Linux driver") supports Linux wireless extensions and does not need (or even work) with the old driver wrapper. (cherry picked from commit 1c5aeef0c28c113a3643f6a50d0508f6f65c431a)
* WPS: Lock AP Setup on multiple AP PIN validation failuresJouni Malinen2009-02-081-0/+2
| | | | | | | If a Registrar tries to configure the AP, but fails to validate the device password (AP PIN), lock the AP setup after four failures. This protects the AP PIN against brute force guessing attacks. (cherry picked from commit 3b2cf800afaaf4eec53a237541ec08bebc4c1a0c)
* Allow WPS APs for PIN enrollment even without Selected RegistrarJouni Malinen2009-02-085-20/+73
| | | | | | | | | | | | | | Some WPS APs do not set Selected Registrar attribute to 1 properly when using an external Registrar. Allow such an AP to be selected for PIN registration after couple of scan runs that do not find APs marked with Selected Registrar = 1. This allows wpa_supplicant to iterate through all APs that advertise WPS support without delaying connection with implementations that set Selected Registrar = 1 properly. (cherry picked from commit a609915233c75f6dc8b942292fd8dcd79bb871bf) Conflicts: wpa_supplicant/wpa_supplicant_i.h
* Documented interface for external WPS credential processingJouni Malinen2009-02-081-0/+19
| | | | (cherry picked from commit 695e2b48e246da80164f06b19abab3dca2ea3d92)
* Increased wpa_cli/hostapd_cli ping interval and made it configurableJouni Malinen2009-02-082-5/+14
| | | | | | | The default interval is now 5 seconds (used to be 1 second for interactive mode and 2 seconds for wpa_cli -a). The interval can be changed with -G<seconds> command line option. (cherry picked from commit 1cc84c1c6b702898fcf1a9b19fb060f88fba9245)
* Fixed MFP Association Comeback mechanism to use Timeout Interval IEJouni Malinen2009-02-081-2/+3
| | | | | | | | The separate Association Comeback Time IE was removed from IEEE 802.11w and the Timeout Interval IE (from IEEE 802.11r) is used instead. The editing on this is still somewhat incomplete in IEEE 802.11w/D7.0, but still, the use of Timeout Interval IE is the expected mechanism. (cherry picked from commit adddffd129af12c3719278a7b2936b9730ce6891)
* WPS: Add configurable option for processing credentials externallyJouni Malinen2009-02-087-1/+121
| | | | | | | | The wps_cred_process option can be used to configure wpa_supplicant to send received Credential attributes for external processing over ctrl_iface and dbus. This allows external programs to update their configuration when WPS is used to provision new networks. (cherry picked from commit 476621644cd3eb94f329bda755f3c639239d321c)
* WPS: Provide the unparsed Credential attribute to cred_cb()Jouni Malinen2009-02-081-0/+3
| | | | | | | This makes it easier to pass the credential data to external programs (e.g., Network Manager) for processing. The actual use of this data is not yet included in hostapd/wpa_supplicant. (cherry picked from commit eca6e0a9a586b999ff9a51315cd741650997366f)
* WPS: Ignore credentials for unsupported authentication typeJouni Malinen2009-02-081-0/+10
| | | | | | | | The current implementation does not support WPA/WPA2-Enterprise credentials. Ignore any credential that is using unsupported authentication type to avoid potential issues with partially configured network blocks. (cherry picked from commit f286077de2b4110c87c3c494cd02c203ecec2559)
* Fixed WPS credential conversion to wpa_supplicant configurationJouni Malinen2009-02-081-5/+0
| | | | | | | | | Must not set pairwise_cipher/group_cipher for non-WPA/WPA2 networks since the configuration parser is going to reject such values. In addition, should not limit group_cipher to just TKIP or TKIP|CCMP just in case the AP is using WEP as the group cipher. Default group_cipher value can be used for all cases. (cherry picked from commit 7aab82b3fedcd96314799118c893e62de7a9f1e4)
* Save and restore wpa_gui state when session manager restarts the appJouni Malinen2009-02-083-7/+59
| | | | | | | This makes wpa_gui remember whether it was only in the tray when the session was terminated and starts only in the tray if session manager restarts it automatically. (cherry picked from commit a5da9c64c9072408f6c736dd666052116d0e6779)
* eapol_test: Allow generated RADIUS attributes to be replacedJouni Malinen2009-02-081-5/+23
| | | | | | | | Do not add the automatically generated RADIUS attributes NAS-IP-Address, Calling-Station-Id, Framed-MTU, NAS-Port-Type, and Connect-Info if -N option is used with the same attribute type. This allows these attributes to be replaced without causing duplicate entries. (cherry picked from commit 676ea3413dec2b5475cc872e3fef39c9563c4253)
* wpa_gui-qt4: silence compile warning + wpsTab enable/disableKel Modderman2009-02-082-1/+2
| | | | | | | | | | | | | | | | | | Fix compile warning by renaming gridLayout to wpsGridLayout in wpagui.ui, it seems to be used internally. /usr/bin/uic-qt4 eventhistory.ui -o .ui/ui_eventhistory.h /usr/bin/uic-qt4 scanresults.ui -o .ui/ui_scanresults.h /usr/bin/uic-qt4 wpagui.ui -o .ui/ui_wpagui.h Warning: name gridLayout is already used /usr/bin/uic-qt4 userdatarequest.ui -o .ui/ui_userdatarequest.h /usr/bin/uic-qt4 networkconfig.ui -o .ui/ui_networkconfig.h Also disable WPS tab if the running supplicant doesn't support that, just as the WPS action menu is. Signed-off-by: Kel Modderman <kel@otaku42.de> (cherry picked from commit e0f6d3d9b546a82f4af50a3481d8f9cdb951f47d)
* Preparations for 0.6.7 releaseJouni Malinen2009-01-065-8/+7
* wpa_cli: Embed command usage into the wpa_cli_commands arrayEygene Ryabinkin2009-01-051-105/+138
| | | | | | | | It is better to have command description around the command definitions: the chances for omitting usage, forgotting to change/delete them, etc. are smaller than for the separate usage statement. [Bug 290] Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
* wpa_cli: Improve sensitive command detection for readline historyEygene Ryabinkin2009-01-051-51/+125
| | | | | | | | | | I had added flags to the every command description: just now the only meaningful flag tells that this command has sensitive arguments and it shouldn't be written to the disk. I rewrote the logics for the search for the sensitive commands: special procedure is now loops over all commands and tries to see if command has sensitive data. [Bug 289] Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
* wpa_cli: fix readline history cleaningEygene Ryabinkin2009-01-051-8/+6
| | | | | | | | | | | First of all, the history had not been written to the disk, since almost all commands were cleaned up due to the error in the history cleaning: the return value of the last os_strncasecmp() call was not compared to zero, but was rather used as is. So the condition was almost always true and most commands were removed from the history. The second problem was that the evaluation of the potentially sensitive commands was started at the entry number 1, instead of very first entry.
* Fixed a typo in usage helpJouni Malinen2009-01-041-1/+1
* eapol_test: Add a universal way of adding extra RADIUS attributesTomasz Wolniewicz2009-01-041-30/+127
| | | | | | This change replaces -I and -i options (Chargeable-User-Identity) with a new -N option that can add any RADIUS attribute into the Access-Request messages without having to modify eapol_test for each new attribute.
* Silenced number of Doxygen warningsJouni Malinen2009-01-043-8/+12
* Remove wpa_gui from doxygen documentationsJouni Malinen2009-01-042-2/+2
| | | | | The *.ui.h were causing number of warnings and they do not need to be included in documentation.
* Fixed IMAGE_PATH for doxygen run in root directoryJouni Malinen2009-01-042-2/+2
* Remove temporary Qt build directories from Doxygen runJouni Malinen2009-01-042-2/+2
* Remove unwanted wpa_supplicant -> struct wpa_supplicant linksJouni Malinen2009-01-041-1/+6
| | | | | | | Replace " wpa_supplicant" with " %wpa_supplicant" except for "struct wpa_supplicant". This makes it easier to write Doxygen comments since there is no need to add the ugly '%' prefix to each instance of wpa_supplicant text showing up.
* Resolve a Doxygen warningJouni Malinen2009-01-041-3/+3
* Fixed Doxygen function linksJouni Malinen2009-01-041-29/+29
| | | | | No need to use explicit @link command, but must include () after function name (and in couple of cases, use the current function name).
* Use NULL, not 0, when comparing a pointerJouni Malinen2009-01-031-1/+1
* Removed sparse destinations since "CC=cgcc make" works fineJouni Malinen2009-01-031-6/+0
* Mark functions static if not used elsewhere and use proper prototypesJouni Malinen2009-01-034-17/+13
* Moved WPS Registrar initialization from EAP peer to wps_supplicant.cJouni Malinen2009-01-031-0/+49
| | | | | This matches the style used in hostapd, i.e., Registrar is initialized only once and callbacks are now processed in wps_supplicant.c.
* Added Doxygen documentation for WPS codeJouni Malinen2009-01-034-8/+8