aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new.h
Commit message (Collapse)AuthorAgeFilesLines
* D-Bus: Add association response status code property for failure casesNaveen Singh2016-03-061-0/+1
| | | | | | | | | | (Re)Association Response frame with status code other than 0 is now notified over DBUS as a part of PropertiesChanged signal. This can be used by application in case AP is denying association with status code 17 (band steering) so that it does not interfere in the BSSID selection logic of wpa_supplicant. Signed-off-by: Naveen Singh <nasingh@google.com>
* D-Bus: Add InvitationReceived SignalManeesh Jain2015-09-271-0/+12
| | | | | | | | This is equivalent to the P2P_EVENT_INVITATION_RECEIVED signal on the control interface. It can be used to sent the Invitation Received signal to applications written using D-Bus. Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
* P2P: Add D-Bus signal GroupFormationFailureNishant Chaprana2015-09-051-0/+8
| | | | | | | This is similar to the control interface event P2P-GROUP-FORMATION-FAILURE. Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
* D-Bus: Add WPS pbc-overlap EventAvichal Agarwal2015-06-101-0/+6
| | | | | | | This sends an Event D-Bus signal with name "pbc-overlap" for WPS-EVENT-OVERLAP. Signed-off-by: Avichal Agarwal <avichal.a@samsung.com>
* P2P: Add GO Intent of connecting device in GO Negotiation Request eventMAYANK HAARIT2015-06-061-5/+6
| | | | | | | | | Add GO Intent information of connecting device in GO Negotiation Request event which will help applications to decide its own GO intent value in advance and can avoid failure cases when both devices use GO Intent 15 depending on application requirement. Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
* P2P: Add D-Bus FindStopped to notify P2P-FIND-STOPPED eventNishant Chaprana2015-05-251-0/+6
| | | | | | | Add D-Bus notification mechanism of P2P-FIND-STOPPED event on fi.w1.wpa_supplicant1.Interface.P2PDevice interface. Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
* Add peer certificate alt subject name information to EAP eventsJouni Malinen2015-01-141-0/+4
| | | | | | | | | | | | | | | A new "CTRL-EVENT-EAP-PEER-ALT depth=<i> <alt name>" event is now used to provide information about server certificate chain alternative subject names for upper layers, e.g., to make it easier to configure constraints on the server certificate. For example: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:server.example.com Currently, this includes DNS, EMAIL, and URI components from the certificates. Similar information is priovided to D-Bus Certification signal in the new altsubject argument which is a string array of these items. Signed-off-by: Jouni Malinen <j@w1.fi>
* dbus: add BSS Age property to indicate last-seen timeDan Williams2014-09-071-0/+1
| | | | | | | | | | | | | | "Age" is the age in seconds since the BSS was last seen, and is emitted as a PropertyChanged signal whenever the BSS is updated from a scan result. It also returns the correct age when queried directly. This property can be used to resolve issues where, if no other properties of the BSS changed from scan results (for example, if the BSS always had 100% signal) no D-Bus signals would be emitted to indicate that the BSS had just been seen in the scan. Signed-hostap: Dan Williams <dcbw@redhat.com>
* dbus: Add PropertiesChanged signal to Peer objectTomasz Bursztyka2014-06-291-0/+8
| | | | | | This signal will be thrown when a Peer joins or leaves a group. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
* dbus: Remove GroupMember object type and use Peer insteadTomasz Bursztyka2014-06-291-8/+0
| | | | | | | GroupMember is unusable in itself and all the necessary informations are stored in Peer objects, thus replace the use of GroupMember by Peer. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
* Propagate scan failures over D-Busquiche@chromium.org2014-04-131-1/+4
| | | | | | | If we receive a scan request via D-Bus and wpa_supplicant_scan_trigger fails, return the failure to the caller over D-Bus. Signed-hostap: mukesh agrawal <quiche@chromium.org>
* Fix reassociate dbus methodFionn Cleary2014-04-111-0/+2
| | | | | | | | - Reassociate was only working when there was already a connect in place, which is not how the REASSOCIATE command from the ctrl interface works. Signed-off-by: Fionn Cleary <fionn.cleary@streamunlimited.com>
* D-Bus: Emit signal when a station is authorized or deauthorizedChengyi Zhao2013-06-221-0/+16
| | | | | | | | | | Add "StaAuthorized" and "StaDeauthorized" D-Bus interface in AP mode. After enabling the AP mode of wpa_supplicant, the other process need to get the MAC address and authorization status of every station, so wpa_supplicant emits signal when the station is authorized or deauthorized. Signed-hostap: Chengyi Zhao <chengyix.zhao@gmail.com>
* dbus: Add getter for WPS propertiesSven Neumann2012-11-031-0/+1
| | | | | | | Add "WPS" property to the DBus interface that allows to identify the active WPS method of a BSS. Signed-hostap: Sven Neumann <s.neumann@raumfeld.com>
* Update license notification in D-Bus interface filesJouni Malinen2012-07-021-8/+2
| | | | | | | | This updates these files to use the license notification that uses only the BSD license. The changes were acknowledged by email (Dan Williams <dcbw@redhat.com>, Sun, 01 Jul 2012 15:53:36 -0500). Signed-hostap: Jouni Malinen <j@w1.fi>
* Export disconnect reason code to dbusGary Morain2012-06-301-0/+1
| | | | | | | | | | | 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/+8
| | | | | | | | | | | | | | | | | | | | | 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>
* DBus: Add ability to report probe requestsJohannes Berg2012-04-011-0/+22
| | | | | | | | | | | | | | | | 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>
* P2P: Make GO negotiation peer and group information available over D-BusReinette Chatre2011-12-181-2/+4
| | | | | | | | | | | | | | | | | | 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>
* dbus: Fix some build combination without new D-Bus interfaceJouni Malinen2011-11-021-2/+1
| | | | | | | Include common/defs.h to get full enum definitions to avoid compiler errors without CONFIG_CTRL_IFACE_DBUS_NEW. Signed-hostap: Jouni Malinen <j@w1.fi>
* dbus: Implement EAP SM control request signalsDan Williams2011-10-301-0/+11
| | | | | | | | | 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>
* 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>
* P2P: Add WpsFailed signal in P2P D-BusJayant Sane2011-06-251-0/+9
| | | | | | | 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: Update D-Bus network object semantics during group formationJayant Sane2011-06-231-0/+24
| | | | | | | | | | | | | 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>
* DBus: Add support for P2P primitivesJohannes Berg2011-06-121-0/+179
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* Add DBus state change notification for AuthMode propertyPaul Stewart2011-03-151-0/+1
| | | | Signed-off-by: Paul Stewart <pstew@google.com>
* dbus: Emit property changed events when adding/removing BSSesDan Williams2010-12-171-0/+1
| | | | | | | The supplicant was not emitting property changed events when the BSSs property changed. Signed-off-by: Dan Williams <dcbw@redhat.com>
* dbus: Change WPA/RSNIE byte array props to dictsWitold Sowa2010-01-161-3/+3
| | | | | | | 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: Change BSS, Network and some errors interface namesWitold Sowa2010-01-091-7/+7
| | | | | Remove ".Interface" part from BSS and Network objects and some error names.
* dbus: Add BSS property change notificationsWitold Sowa2010-01-061-0/+20
|
* dbus: Replace StateChanged with PropertiesChanged signalMarcel Holtmann2010-01-041-3/+1
| | | | | | | | | | | 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: Clean up dbus_path/dbus_new_path useJouni Malinen2010-01-011-2/+0
| | | | | | These cannot be NULL, so there is no point in checking for that. In addition, the accessor function for this is just making the code harder to understand.
* dbus: Remove wpas_dbus_callbacks abstractionJouni Malinen2010-01-011-55/+134
| | | | | | | | | 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: Do not include libdbus dbus/dbus.h into dbus_{old,new}.hJouni Malinen2010-01-011-2/+0
| | | | | | These header files are included outside the dbus subdirectory and there is not really any need to force the libdbus dbus/dbus.h header file to be included into these files.
* dbus: Divide DebugParams property to three separate propertiesWitold Sowa2010-01-011-1/+4
|
* dbus: Rename InterfaceCreated to InterfaceAddedWitold Sowa2010-01-011-1/+1
| | | | | Change signal name to the one defined in documentation and introspection data.
* dbus: Share common initialization code for both old and new interfaceJouni Malinen2009-12-301-5/+4
| | | | | | | | | | | | | | 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-271-4/+3
| | | | | | | | 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.
* Get rid of unnecessary typedefs for enums.Jouni Malinen2009-12-261-2/+2
|
* dbus: Remove the confusing "ctrl_iface_" prefix from file namesJouni Malinen2009-12-201-0/+140
The D-Bus interface does not really have anything to do with the wpa_supplicant ctrl_iface interface and as such, this prefix in dbus files is both confusing and unnecessarily. Make the file names shorter by removing this prefix.