Commit graph

2 commits

Author SHA1 Message Date
d570560d3b feat: Phase 4 - Connection Management
Implemented complete Wi-Fi connection flow with authentication.

Phase 4: Connection Management
- Created passphrase authentication dialog (ui/wifi_auth.c)
- Network selection handler in popup
- Integrated agent with passphrase dialog
- Complete connection flow: select network → auth dialog → agent → iwd
- Support for open and secured (WPA2/WPA3) networks
- Proper async D-Bus message handling in agent

Features:
- Passphrase dialog with password entry widget
- Minimum 8-character passphrase validation
- Network selection from popup (click to connect)
- Open networks connect directly without dialog
- Secured networks (psk, 8021x) show auth dialog
- Agent stores pending D-Bus message for async reply
- Passphrase sent securely to iwd via D-Bus
- Memory cleared after passphrase transmission
- Cancel button sends proper error reply to iwd
- Network type detection (open/psk/8021x)

Connection Flow:
1. User clicks network in popup
2. Check security type
3. If open: connect directly
4. If secured: show passphrase dialog
5. User enters passphrase
6. Agent receives RequestPassphrase from iwd
7. Dialog shows for network
8. User clicks Connect
9. Agent sends passphrase to iwd
10. iwd handles connection

Agent Improvements:
- Stores pending D-Bus message for async reply
- Properly returns NULL to indicate async handling
- Sends passphrase via eldbus_message_method_return_new
- Cancellation sends error reply to iwd
- Integrates with UI dialog system

Module size: 191KB (increased from 152KB)
Total lines: ~2,900 across 20 files

Next phase: Advanced Features (hidden networks, multiple adapters, error handling)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 18:42:30 +07:00
8cefafafb8 feat: Phase 1 & 2 - Build system and D-Bus layer
Phase 1: Build System & Module Skeleton
- Set up Meson build system with EFL dependencies
- Created module entry point with e_modapi_init/shutdown/save
- Implemented configuration system using EET
- Added module.desktop metadata file
- Configured proper installation paths

Phase 2: D-Bus Layer (iwd Backend)
- Implemented D-Bus connection management to net.connman.iwd
- Created device abstraction layer (iwd_device.c) for Wi-Fi interfaces
- Created network abstraction layer (iwd_network.c) for access points
- Implemented D-Bus agent for passphrase requests (iwd_agent.c)
- Added ObjectManager support for device/network discovery
- Implemented daemon restart detection and reconnection
- Property change signal handling for devices and networks

Features:
- Connects to system D-Bus and iwd daemon
- Discovers wireless devices and networks via ObjectManager
- Monitors iwd daemon availability (handles restart)
- Agent registered for WPA/WPA2/WPA3 authentication
- Signal-driven updates (no polling)

Files created: 16 source/header files
Build status: Compiles successfully with gcc 15.2.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 18:31:33 +07:00