aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Android: Add a top level Android.mkJouni Malinen2013-05-181-0/+3
| | | | | | | This allows the hostap.git repository version to be build as part of the full Android platform build. Signed-hostap: Jouni Malinen <j@w1.fi>
* Abstract and Android sockets for global ctrl_ifaceJouni Malinen2013-05-182-24/+86
| | | | | | | | | The wpa_supplicant global control interface parameter can now be used to explicitly specify an abstract UNIX domain socket (Linux specific extension) with "@abstract:" prefix and an Android control socket with "@android:" prefix. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_cli: Allow global interface to be used in interactive modeJouni Malinen2013-05-181-0/+4
| | | | | | | | | This is mostly a corner case at this point, but if wpa_cli was started with global control interface connection (-g) and interactive mode, per-interface control interface was tried to be opened with the previously opened global ctrl_iface connection gettign leaked. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Add -G argument to specify global ctrl groupJouni Malinen2013-05-185-3/+54
| | | | | | | 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>
* Allow global ctrl_iface to be used for per-interface commandsJouni Malinen2013-05-181-0/+34
| | | | | | | | | | "IFNAME=<ifname> " prefix can now be used on the wpa_supplicant global control interface to direct a command to a specific interface instead of having to use an interface specific control interface for this. This allows a single socket to be used for controlling multiple virtual interfaces. Signed-hostap: Jouni Malinen <j@w1.fi>
* FT RRB: Fix a memory leak on error pathJouni Malinen2013-05-181-1/+3
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Use preferred channel list during GO creationSuryadevara Sudheer2013-05-173-0/+43
| | | | | | | This extends support for p2p_pref_Chan configuration parameter for autonomous GO creation. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Re-select channel in invitation case with peer infoSuryadevara Sudheer2013-05-171-0/+8
| | | | | | | | Allow invitation exchange to update operating channel selection after peer channel list has been received similarly to how GO negotiation was handled. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Fix p2p_pref_chan setting from configuration fileYufeng Wang2013-05-171-0/+6
| | | | | | | | | | Commit 21d996f775a2131bb0c73d6e18ca9b382f017057 added p2p_pref_chan as a configuration file parameter, but included only the case of dynamically setting this at runtime through the control interface SET command. Complete this functionality by taking this value into use directly from the configuration file, too. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* dbus: Terminate cleanly on messagebus shutdownDaniel Gnoutcheff2013-05-161-1/+24
| | | | | | | | | | | | | | By default, dbus_connection_dispatch() will call _exit() if the bus connection has been closed. This caused wpa_supplicant to terminate without properly cleaning up after itself. To ensure that we terminate cleanly when the messagebus terminates, override the exit_on_disconnect behavior and install a filter to handle libdbus's "Disconnected" signal. [Bug 474] Signed-hostap: Daniel Gnoutcheff <daniel@gnoutcheff.name>
* WNM: Enable CONFIG_WNM in Android.mkVinayak Kamath2013-05-161-1/+4
| | | | Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
* WNM: Add sending of BSS Transition Management QueryVinayak Kamath2013-05-165-0/+69
| | | | | | | The new control interface command can be used to send a BSS Transition Management Query frame to the current AP. Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
* WNM: Add neighbor report processing for BSS Transition ManagementVinayak Kamath2013-05-165-16/+402
| | | | | | Process the neighbor report received in BSS Management Request frames. Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
* WPS: Clear connection failure counts on WPS successJouni Malinen2013-05-151-0/+3
| | | | | | | | The WPS provisioning case does not result in successful connection by design and as such, this can result in networks getting temporarily disabled. Avoid this by clearing the failure counts on WPS success. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* WPS NFC: Connect using learnt credential after NFC Tag readJouni Malinen2013-05-151-13/+31
| | | | | | | | | Instead of just adding the new network, prefer the network learnt from a configuration token during the first connection attempt. This makes the WPS NFC case behave similarly to the in-band provisioning cases if there are more preferred networks in the scan results. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* edit: Fix libreadline history clearing with WPA_TRACEJouni Malinen2013-05-141-2/+2
| | | | | | | | | | The HIST_ENTRY and its variables are allocated within libreadline, so they won't have the WPA_TRACE special header and cannot be freed with os_free(). Use free() to avoid issues during wpa_cli termination if any of the new commands added to the history are to be removed (e.g., set_network could include a password). Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Fix foreign address filtering for MLME frame eventsJouni Malinen2013-05-131-4/+5
| | | | | | | | | | | | | Commit 97279d8d1ad40bd7d884af8e2fc26dff0163331a started filtering MLME frame events based on Address 1 (destination) field. This works fine for frames sent to us, but it did filter out some corner cases where we actually want to process an event based on a frame sent by us. The main such case is deauthentication or disassociation triggered by something external to wpa_supplicant in the system. Fix this by accepting events for frames where either Address 1 or 2 (transmitter) matches the interface address. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpadebug: Add broadcast intent receiver for Wi-Fi eventsJouni Malinen2013-05-122-0/+105
| | | | | | | This makes it easier to debug Android framework actions with all the related broadcast intents being logged. Signed-hostap: Jouni Malinen <j@w1.fi>
* Mark interface disconnected on removal requestJouni Malinen2013-05-121-0/+1
| | | | | | | | | This cleans up debug log by not trying to process the disconnection event as a failure that could result in blacklist addition and auto connect attempt. These are pointless operations since the interface is going to removed immediately after this. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Do not try auto connect mechanism in disconnected stateJouni Malinen2013-05-121-2/+3
| | | | | | | | This cleans up debug log by not requesting the auto connect on dissassociation event if we are already in disconnected state and would not try to connect anyway. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Do not add BSS to blacklist on local disconnection requestJouni Malinen2013-05-121-0/+11
| | | | | | | | | | | | | | There is no point in marking a BSS temporarily blacklisted based on a connection failure or disconnection case if that happens as a result of a local request to disconnect. The blacklist entry could result on unexpected BSS getting selected on the next connection attempt. In addition, the code to try to find another BSS within the ESS could result in scanning a single channel on the next attempt. Fix these issues by handling the connection failure events only if we are not in disconnected state (i.e., would try to reconnect after this automatically). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wpadebug: Add a simple WebView activityJouni Malinen2013-05-122-0/+123
| | | | | | | | | | | | | This provides a simple web browser that can be started and stopped from other apps or native applications. This activity can be started with the following command: am start -a android.action.MAIN -c android.intent.category.LAUNCHER \ -n w1.fi.wpadebug/.WpaWebViewActivity -e w1.fi.wpadebug.URL <URL> If <URL> is set to FINISH the activity is finished. Signed-hostap: Jouni Malinen <j@w1.fi>
* tests: Allow hwsim_test and wlantest_cli to be used from PATHJouni Malinen2013-05-112-13/+24
| | | | | | | This makes it easier to support some test environments where the repository is shared between hosts. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpadebug: Add forgotten installation step to documentationJouni Malinen2013-05-111-0/+1
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* tests: Use /var/run/hostapd-global to avoid socket file in work dirJouni Malinen2013-05-102-2/+2
| | | | | | This makes some cases more convenient with read-only file systems. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Defer scan if connection is in progress on any of the shared interfacesDeepthi Gowri2013-05-103-1/+41
| | | | | | | | Scanning can delay concurrent operations considerably, so it is better to avoid that while trying to connect on any of the virtual interfaces that share the same radio. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* tls_openssl: Store TLS context per-connectionPaul Stewart2013-05-091-24/+70
| | | | | | | | Store context for each tls_init() caller, so events are generated for the correct wpa_s instance. The tls_global variable is retained for older OpenSSL implementations that may not have app-data for SSL_CTX. Signed-hostap: Paul Stewart <pstew@chromium.org>
* Rename hostapd_parse_rates() to a more generic int list parserSimon Wunderlich2013-05-091-7/+8
| | | | | | This can be used with other integer lists than just rates. Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* DFS: Add ieee80211h hostapd configuration parameterSimon Wunderlich2013-05-093-0/+16
| | | | | | | | | | | This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* nl80211: Add driver_ops for stopping AP beaconingSimon Wunderlich2013-05-092-0/+24
| | | | | | | | | | | | | | This can be used to stop AP mode beaconing temporarily, e.g., in response to a radar detected event. This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* nl80211: Add driver_ops for starting radar detectionSimon Wunderlich2013-05-092-0/+43
| | | | | | | | | | | This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* nl80211: Add channel flags for DFS state informationSimon Wunderlich2013-05-092-0/+23
| | | | | | | | | | | This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* nl80211: Add driver capability flag for radar detectionSimon Wunderlich2013-05-092-0/+6
| | | | | | | | | | | This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* nl80211: Add driver events for radar detectionSimon Wunderlich2013-05-093-1/+84
| | | | | | | | | | | This patch is based on the original work by Boris Presman and Victor Goldenshtein. Channel Switch Announcement support has been removed and event handling as well as channel set handling was changed, among various other changes. Cc: Boris Presman <boris.presman@ti.com> Cc: Victor Goldenshtein <victorg@ti.com> Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* eloop: Allow to run event loop multiple times in a rowSimon Wunderlich2013-05-091-0/+1
| | | | | | | | DFS implementation requires to run an eventloop while monitoring the Channel Availability Check (CAC). After that, the "real" event loop is started, and should not fail doing so. Signed-hostap: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
* wpa_supplicant: Allow vifs to scan only current channelBen Greear2013-05-095-2/+31
| | | | | | | | | If a VIF is already associated, then only scan on the associated frequency if user requests such. This is a big help when using lots of virtual stations. Signed-hostap: Ben Greear <greearb@candelatech.com> Signed-off-by: Ben Greear <greearb@candelatech.com>
* systemd: Fix systemd interface aliasArend van Spriel2013-05-093-3/+3
| | | | | | | | | In the systemd interface templated the alias entry was specified with wlan0 hard coded. Changing it to %i in this patch. [Bug 477] Reported-by: zg <ml@mail.tsaitgaist.info> Signed-hostap: Arend van Spriel <arend@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com>
* Try to set WPA-None key after IBSS-joined eventJouni Malinen2013-05-073-2/+14
| | | | | | | | cfg80211 rejects the set_key operations before the IBSS network has been fully formed, so add one more attempt to set the key for WPA-None at IBSS joined driver event. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Use cached driver capabilities instead of new fetch for each operationJouni Malinen2013-05-072-6/+4
| | | | | | | There is no need to repeat the driver capability fetch for each operation since we already cache driver flags in wpa_s->drv_flags. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* TDLS: Do not overwrite the reason code in the Tear Down RequestSunil Dutt2013-05-071-6/+1
| | | | | | | | The reason code for the teardown request is overwritten for open mode. This commit removes the code that does so by reverting parts of commit 0cb12963b69abf493e456c8b2ed2b0be30ce11e7. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Add a configration parameter for sched_scan intervalSheng Fang2013-05-074-1/+13
| | | | | | | The new sched_scan_interval parameter can be used to set the default sched_scan interval, e.g., for power saving purposes. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Synchronize with wireless-testing.git include/uapi/linux/nl80211.hJouni Malinen2013-05-061-0/+39
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* TDLS: Move AID=1 workaround into driver_nl80211.cJouni Malinen2013-05-062-3/+13
| | | | | | | | The use of AID=1 for the nl80211 dummy STA case is specific to the driver (cfg80211), so better move this into the driver wrapper instead of generic TDLS implementation. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* TDLS: Pass peer's AID information to kernelSunil Dutt2013-05-066-8/+19
| | | | | | | | | The information of the peer's AID is required for the driver to construct partial AID in VHT PPDU's. Pass this information to the driver during add/set station operations (well, as soon as the information is available, i.e., with set station operation currently). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wpadebug: Add more common control interface commands to the listJouni Malinen2013-05-051-0/+4
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* wpadebug: Add credential managerJouni Malinen2013-05-056-0/+461
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* wpadebug: Add exception handling for missing resourcesJouni Malinen2013-05-052-4/+16
| | | | | | | These errors should not really happen, but apparently they can if the build dependencies get messed up somehow. Signed-hostap: Jouni Malinen <j@w1.fi>
* HS 2.0: Include HS 2.0 Indication element only for HS 2.0 associationJouni Malinen2013-05-054-2/+33
| | | | | | | | | | | | | The Hotspot 2.0 specification seems to mandate this element to be included in all (Re)Association Request frames if the station is Hotspot 2.0 capable. However, that results in conflicts with other requirements like no TKIP use when this element is present. The design is really supposed to include the indication element only for Hotspot 2.0 associations regardless of what the current specification implies. Remove the HS 2.0 Indication element from (Re)Association Request frame whenever the connection is not for Hotspot 2.0 purposes. Signed-hostap: Jouni Malinen <j@w1.fi>
* edit: Fix history processing on running old commandJouni Malinen2013-05-051-1/+1
| | | | | | | | currbuf_valid needs to be cleared when an old command from history is processed to avoid leaving a bogus entry that makes history_prev() skip the last entry in history. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_cli: Fetch the current BSSID list when starting interactive modeJouni Malinen2013-05-051-0/+33
| | | | | | | This makes tab completion work better in cases where wpa_cli is started after wpa_supplicant has already discovered BSSes. Signed-hostap: Jouni Malinen <j@w1.fi>