author | Todd Previte <toddx.a.previte@intel.com> | |
Sat, 4 Feb 2012 11:08:12 +0000 (13:08 +0200) | ||
committer | Jouni Malinen <j@w1.fi> | |
Sat, 4 Feb 2012 11:08:12 +0000 (13:08 +0200) | ||
commit | aa89df56996c0da499f1cdb132893c1863b6b2fb | |
tree | 9f43c23326cd9350cef76f0b364dea0657ad07b6 | tree | snapshot (tar.xz tar.gz zip) |
parent | 96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c | commit | diff |
P2P: Fix DBus crash and return additional P2P group properties
When using DBus to get group properties, a segmentation fault is
generated on P2P clients due to a NULL pointer for the ap_iface struct.
The current implementation only returns vendor extensions when called on
a P2P group owner.
The code now checks the P2P role which allows for role-specific
information to be provided. This also fixes the crash issue by only
looking for the correct structures based on the current P2P role.
Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
When using DBus to get group properties, a segmentation fault is
generated on P2P clients due to a NULL pointer for the ap_iface struct.
The current implementation only returns vendor extensions when called on
a P2P group owner.
The code now checks the P2P role which allows for role-specific
information to be provided. This also fixes the crash issue by only
looking for the correct structures based on the current P2P role.
Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
wpa_supplicant/dbus/dbus_new_handlers_p2p.c | diff | blob | history |