Files
bitchat-android/docs/CODEX_WIFI_FIX_PLAN.md
2026-06-10 14:14:28 +02:00

1.0 KiB
Raw Permalink Blame History

WiFi Aware + BLE Mesh Fix Plan

Goals

  • One canonical, merged peer list across BLE + WiFi Aware.
  • Packets relay seamlessly across transports without flapping or missing peers.
  • ANNOUNCE and peer mapping remain consistent, regardless of transport.

TODO Tracker

  • Add a centralized mesh peer registry and merge BLE + WiFi Aware peer lists.
  • Route peer list updates through the registry (BLE + WiFi Aware).
  • Remove UI state overwrites of connected peers; use merged list for cleanup/notifications/outbox.
  • Bridge relay across transports (BLE → WiFi Aware and WiFi Aware → BLE).
  • Verify peer list stability and crosstransport routing with mixed peers.

Implementation Notes

  • Registry should own the merged list and update AppStateStore only from the merged result.
  • Relay bridging should occur at PacketProcessorDelegate.relayPacket(...) to keep relay logic centralized.
  • Avoid new loops/duplication: reuse existing TTL/relay rules and do not mutate the routed packet.