aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix null pointer access for SSID printing.andy2_kuo2012-08-021-1/+2
|
* Fix SSID printing in eventsIrfan Sheriff2012-08-021-1/+2
|
* Add SSID in supplicant change eventIrfan Sheriff2012-08-021-2/+4
|
* Export disconnect reason code to dbusGary Morain2012-06-301-0/+6
| | | | | | | | | | | In the properties changed signal, added a new property "DisconnectReason", which carries the IEEE 802.11 reason code of the most recent disassociation or deauthentication event. The reason code is negative if it is locally generated. The property is sent to the DBUS immediately so as to prevent it from being coalesced with other disconnect events. Signed-off-by: Gary Morain <gmorain@chromium.org>
* wpa_supplicant: Report EAP connection progress to DBusPaul Stewart2012-06-041-0/+7
| | | | | | | | | | | | | | | | | | | | | Send an "EAP" signal via the new DBus interface under various conditions during EAP authentication: - During method selection (ACK and NAK) - During certificate verification - While sending and receiving TLS alert messages - EAP success and failure messages This provides DBus callers a number of new tools: - The ability to probe an AP for available EAP methods (given an identity). - The ability to identify why the remote certificate was not verified. - The ability to identify why the remote peer refused a TLS connection. Signed-hostap: Paul Stewart <pstew@chromium.org>
* P2P: Notify about disconnection only when neededEliad Peller2012-04-011-1/+1
| | | | | | | | | | wpas_notify_state_changed() notified about disconnection when new_state < WPA_ASSOCIATED, without checking the old state. This results in extra processing which can be avoided by checking that old_state was connected. Signed-hostap: Eliad Peller <eliad@wizery.com> intended-for: hostap-1
* DBus: Add ability to report probe requestsJohannes Berg2012-04-011-0/+10
| | | | | | | | | | | | | | | | Some applications require knowing about probe requests to identify devices. This can be the case in AP mode to see the devices before they connect, or even in P2P mode when operating as a P2P device to identify non-P2P peers (P2P peers are identified via PeerFound signals). As there are typically a lot of probe requests, require that an interested application subscribes to this signal so the bus isn't always flooded with these notifications. The notifications in DBus are then unicast only to that application. A small test script is also included. 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>
* P2P: Maintain a list of P2P Clients for persistent group on GOJouni Malinen2011-12-221-3/+7
| | | | | | | | | | Add a new persistent group network block field, p2p_client_list, to maintain a list of P2P Clients that have connected to a persistent group. This allows GO of a persistent group to figure out more easily whether re-invocation of a persistent group can be used with a specific peer device. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Make GO negotiation peer and group information available over D-BusReinette Chatre2011-12-181-2/+3
| | | | | | | | | | | | | | | | | | The GO negotiation response is very cryptic at the moment. For a success message we only know on which interface the negotiation succeeded, not which peer. For a failure we know the interface also and a status code (number). It will be very useful for clients to know upon receipt of such a message which peer the negotiation occurred with. Now that the peer information is available and the API is changed already, the function composing the D-Bus message might as well include all GO negotiation information. This is done with a dict to make things easier on clients if this result information changes down the line. Signed-hostap: Reinette Chatre <reinette.chatre@intel.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* P2P: Clean up group formation on network block removalJouni Malinen2011-12-101-0/+3
| | | | | | | | | | If a P2P group network block is removed for any reason (e.g., wps_cancel command) while the interface is in group formation, remove the group formation timeout and indicate failure immediately. Previously, this type of operations could end up leaving the timeout running and result in somewhat unexpected group formation failure events later. Signed-hostap: Jouni Malinen <j@w1.fi>
* dbus: Implement EAP SM control request signalsDan Williams2011-10-301-0/+9
| | | | | | | | | Add a D-Bus signal for EAP SM requests. This signal is emitted on the Interface object so that clients only have to listen to one object for requests rather than to all network objects. This signal is analogous to the socket control interface's CTRL-REQ- request. Signed-off-by: Dan Williams <dcbw@redhat.com>
* Fix segfault on error path if driver initialization failsJouni Malinen2011-10-201-1/+2
| | | | | wpa_s->wpa is NULL in this case and we better not call WPA state machine functions.
* Flush PMKSA cache entries and invalidate EAP state on network changesJouni Malinen2011-09-071-0/+2
| | | | | | | | | | | If a network configuration block is removed or modified, flush all PMKSA cache entries that were created using that network configuration. Similarly, invalidate EAP state (fast re-auth). The special case for OKC on wpa_supplicant reconfiguration (network_ctx pointer change) is now addressed as part of the PMKSA cache flushing, so it does not need a separate mechanism for clearing the network_ctx values in the PMKSA cache.
* Move peer certificate wpa_msg() calls to notify.cJouni Malinen2011-07-051-0/+21
| | | | | This type of wpa_supplicant specific message construction does not need to be at the EAP implementation, so better move it up to notify.c.
* Add dbus signal for information about server certificationMichael Chang2011-07-051-0/+12
| | | | | | | | | | | | In general, this patch attemps to extend commit 00468b4650998144f794762206c695c962c54734 with dbus support. This can be used by dbus client to implement subject match text entry with preset value probed from server. This preset value, if user accepts it, is remembered and passed to subject_match config for any future authentication. Signed-off-by: Michael Chang <mchang@novell.com>
* Fix D-Bus build without CONFIG_P2P=yJouni Malinen2011-06-271-0/+4
|
* P2P: Add WpsFailed signal in P2P D-BusJayant Sane2011-06-251-0/+8
| | | | | | | Signal is triggered if an error occurs during WPS provisioning phase. Signed-off-by: Jean-Michel.Bachot <jean-michelx.bachot@intel.com> Signed-off-by: Jayant Sane <jayant.sane@intel.com>
* P2P: More complete persistent group management over D-BusJayant Sane2011-06-241-0/+7
| | | | | | Extend commit c2762e410fa319f75a174aeb12343beddf99fce4 to allow applications to manage (add/remove) persistent groups and accepted network object paths while invoking a persistent group.
* P2P: Update D-Bus network object semantics during group formationJayant Sane2011-06-231-2/+17
| | | | | | | | | | | | | Do not emit network objects during P2P group formation since such network objects can confuse certain apps. Instead, a persistent group object is created to allow apps to keep track of persistent groups. Persistent group objects only represent the info needed to recreate the group. Also fixes a minor bug in the handling of persistent group objects during WPS operations. Signed-off-by: Jayant Sane <jayant.sane@intel.com>
* Fix non-P2P D-Bus buildJouni Malinen2011-06-201-0/+4
|
* DBus: Add support for P2P primitivesJohannes Berg2011-06-121-0/+51
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add group started notificationJean-Michel Bachot2011-06-121-0/+7
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add wpas_notify_p2p_provision_discovery()Johannes Berg2011-06-121-0/+21
| | | | | | Add a notification for P2P provision discovery status/result. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* wpa_s AP mode: Add notification functions for STA authorizedJohannes Berg2011-03-161-0/+22
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* Add DBus state change notification for AuthMode propertyPaul Stewart2011-03-151-0/+6
| | | | Signed-off-by: Paul Stewart <pstew@google.com>
* Add wpa_supplicant state change event for Android network managerDmitry Shmidt2011-02-261-0/+7
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* P2P: Add wpas_notify_p2p_sd_responseKonguraj(Raj) Kulanthaivel2011-02-241-0/+7
| | | | | Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add wpas_notify_p2p_sd_requestKonguraj(Raj) Kulanthaivel2011-02-241-0/+8
| | | | | Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add invitation result notificationJean-Michel Bachot2011-02-241-0/+6
| | | | | | | Add a notification function for the result of an invitation. Signed-off-by: Jean-Michel Bachot <jean-michelx.bachot@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add GO negotiation status notificationJayant Sane2011-02-241-0/+5
| | | | | Signed-off-by: Jayant Sane <jayant.sane@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add wpas_notify_p2p_go_neg_reqKonguraj(Raj) Kulanthaivel2011-02-241-0/+6
| | | | | | | Add a notification for received GO negotiation requests. Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add group removed notificationJohannes Berg2011-02-241-0/+7
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add method to signal lost deviceJohannes Berg2011-02-241-0/+8
| | | | | | | This signal is used to notify users of the P2P state machine or wpa_supplicant of lost devices. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add notification for P2P device foundJohannes Berg2011-02-241-0/+8
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* SME: Add timers for authentication and asscoiationBen Greear2011-02-241-0/+3
| | | | | | | | mac80211 authentication or association operation may get stuck for some reasons, so wpa_supplicant better use an internal timer to recover from this. Signed-off-by: Ben Greear <greearb@candelatech.com>
* P2P: Add support for cross connectionJouni Malinen2010-09-091-0/+8
| | | | | | | | If enabled, cross connection allows GO to forward IPv4 packets using masquerading NAT from the P2P clients in the group to an uplink WLAN connection. This is disabled by default and can be enabled with "wpa_cli p2p_set cross_connect 1" on the P2P device interface.
* Add suspend/resume notificationsJouni Malinen2010-02-271-1/+37
| | | | | | wpa_supplicant can now be notified of suspend/resume events, e.g., from pm-action scripts. This allows wpa_supplicant to clear information that may become invalid during a suspend operation.
* dbus: Change WPA/RSNIE byte array props to dictsWitold Sowa2010-01-161-3/+9
| | | | | | | Expose RSN and WPA properties for BSS objects containing information about key management and cipher suites. Get rid of WPA/RSN/WPSIE byte array properties and add IEs byte array property with all IE data instead.
* dbus: Add BSS property change notificationsWitold Sowa2010-01-061-0/+58
|
* dbus: Replace StateChanged with PropertiesChanged signalMarcel Holtmann2010-01-041-1/+2
| | | | | | | | | | | The actual supplicant state is exposed via a property on the interface object. So having a separate signal StateChanged for notifying about changes is a bad idea. The standard PropertiesChanged signal should be used for this. The advantage of StateChanged signal was that it includes the previous state, but not even NetworkManager is making use of this. And tracking the old state via the property and this signal is easily possible anyway.
* dbus: Remove wpas_dbus_callbacks abstractionJouni Malinen2010-01-011-76/+23
| | | | | | | | | This callback structure was specific to the new D-Bus API which makes it more or less pointless. It is just simpler to call the notification functions directly. More proper design could be to use a generic mechanism for registering notification callbacks into notify.c, but that is not yet available and should not be designed just based on a single user.
* dbus: Divide DebugParams property to three separate propertiesWitold Sowa2010-01-011-2/+18
|
* dbus: Rename old D-Bus API files to include "_old"Jouni Malinen2009-12-311-1/+1
| | | | | This makes it easier to figure out which file is used by which D-Bus interface.
* dbus: Share common initialization code for both old and new interfaceJouni Malinen2009-12-311-21/+11
| | | | | | | | | | | | | | This was mostly identical code that had been copied for the new D-Bus API implementation and as such, should really have been shared from the beginning. In addition, the copied code ended up generating interesting stack traces since the actual D-Bus connection was being shared even though the pointer to it was stored in two distinct data structures. The old D-Bus code ended up dispatching some D-Bus callbacks which ended up running the new D-Bus code. Since the private context pointers were mostly identical, everything seemed to more or less work, but this design was just making things more complex and potentially very easy to break.
* dbus: Use the new BSS table with the new D-Bus APIJouni Malinen2009-12-281-2/+2
| | | | | | | | Replace the scan results -based implementation with the use of information from the new BSS table maintained by wpa_supplicant to get a more stable source of BSS data. Change the use of BSSID as the key for the BSS object to use the BSS table unique identifier so that multi-SSID APs can be handled properly.
* Add ctrl_iface events for BSS added/removedJouni Malinen2009-12-281-4/+9
|
* Get rid of unnecessary typedefs for enums.Jouni Malinen2009-12-261-1/+2
|
* dbus: Fix build with "ctrl_iface_" prefix removedJouni Malinen2009-12-201-2/+2
|
* Move D-Bus related files into their own subdirectoryJouni Malinen2009-12-201-2/+2
|