Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: wifi scan no longer interrupts connecting/DHCP/connected state

The JS pieces call wifi.scan() every ~2s which was sending WIFI_CMD_SCAN
to the worker thread, interrupting in-progress WPA handshake and DHCP.
Now wifi_scan() is a no-op while connecting or already connected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+4 -2
+4 -2
fedac/native/src/wifi.c
··· 854 854 if (!wifi || !wifi->iface[0] || !wifi->thread_running) return; 855 855 856 856 pthread_mutex_lock(&wifi->lock); 857 - // Don't restart scan if already scanning 858 - if (wifi->state == WIFI_STATE_SCANNING) { 857 + // Don't interrupt scanning, connecting, or DHCP in progress 858 + if (wifi->state == WIFI_STATE_SCANNING || 859 + wifi->state == WIFI_STATE_CONNECTING || 860 + wifi->state == WIFI_STATE_CONNECTED) { 859 861 pthread_mutex_unlock(&wifi->lock); 860 862 return; 861 863 }