__WDS_LOG_FUNC_EXIT__;
return;
}
+
+#ifdef CTRL_IFACE_DBUS
+ /**
+ * If no peer connected and
+ * disconnected event is not for connecting peer
+ * then event should be ignored.
+ * This situation can arrise when TV is GO and
+ * some connected peer sent disassociation.
+ */
+ if (memcmp(peer_addr, event->dev_addr, MACADDR_LEN)) {
+ WDS_LOGE("Unexpected event, Ignore it...");
+ __WDS_LOG_FUNC_EXIT__;
+ return;
+ }
+#endif /* CTRL_DBUS_IFACE */
}
memcpy(peer_addr, peer->dev_addr, MACADDR_LEN);
memset(¬i, 0x0, sizeof(wifi_direct_client_noti_s));