Fix incorrect handling of STA CONNECTED event 75/196075/1
authorShagun Garg <shagun1.garg@samsung.com>
Fri, 21 Dec 2018 08:02:07 +0000 (13:32 +0530)
committerShagun Garg <shagun1.garg@samsung.com>
Fri, 21 Dec 2018 08:05:52 +0000 (13:35 +0530)
commit4348f526f008a633f05a5f4e9be0f2bf8836c571
treea5bf38ac9e625be905dc2ee34b298ca2cfd8ccba
parenta2f05f94650988fe88175d25d7656a283f7570cc
Fix incorrect handling of STA CONNECTED event

Mobile is not able to create wifi-direct connection with TV after multiple trials
This is observed when previously simultaneous connection has been requested for two devices (speaker and mobile).
Issue :
1. There is a  previously created session for mobile when sta_connected is received for speaker.
2. Incorrect device is added as member in group and "connection" signal is sent for wrong device.
Solution :
1. Previously created session for mobile should be destroyed in case Session->peer->dev_addr and event->dev_addr are not matched in wfd_event_sta_connected()

Change-Id: Icf4af67d653e0bc23faffe2d32ec455de3e70c04
Signed-off-by: Shagun Garg <shagun1.garg@samsung.com>
packaging/wifi-direct-manager.spec
src/wifi-direct-event.c [changed mode: 0644->0755]