wifi: dual-band SSID reports the wrong band for the connected AP

Abierto Apto para principiantes
#4,276 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Empieza en core/internal/server/network/backend_networkmanager_wifi.go, concretamente en updateWiFiNetworks(), y rastrea cómo se agrupan los AP de un mismo SSID y dónde se asignan Connected y Rate. Compara esa ruta con GetWiFiNetworkInfo(), que ya distingue los AP por BSSID. Hecho significa que cada campo de la fila conectada proviene del AP asociado y que la tarjeta ya no mezcla valores de 2.4 GHz y 5 GHz.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Compositor: niri 26.04 · Distribution: CachyOS · Install: distro package (dux-shell 2.1.2-1.1) · Network backend: NetworkManager (iwd not in use)

Description

Connected to the 5 GHz AP of a dual-band SSID, the Wi-Fi details card shows a self-contradictory set of values:

Frequency: 2.4 GHz
Channel:   36
Rate:      1361 Mbps
BSSID:     <2.4 GHz AP>

Channel 36 is a 5 GHz channel, while the frequency and BSSID belong to the 2.4 GHz radio of the same network — the card mixes data from two different APs.

The rest of the stack is correct:

$ iw dev wlan0 link      → freq: 5180.0, tx bitrate 1297.1 MBit/s
$ nmcli ... dev wifi     → 2.4 GHz AP on 2437 MHz (100%), connected 5 GHz AP on 5180 MHz (58%)

So NetworkManager and the driver agree on the association; the mismatch is produced in the DMS network backend.

Cause

core/internal/server/network/backend_networkmanager_wifi.go, updateWiFiNetworks() collapses all APs of one SSID into a single entry, and on a stronger AP refreshes only part of the fields:

if strength > existing.Signal {
    existing.Signal = strength
    existing.Frequency = freq     // from the stronger 2.4 GHz AP
    existing.BSSID = bssid
}                                 // Channel, Rate, Mode keep the first AP's values

Consequences:

  • "2.4 GHz" next to "Channel 36" — partial merge.
  • For a dual-band SSID the card describes the strongest radio instead of the associated one (2.4 GHz wins on RSSI here).
  • Connected is computed by SSID alone (isConnected := ssid == currentSSID), unlike GetWiFiNetworkInfo(), which compares BSSIDs — so the aggregated row also takes Rate from the device bitrate of the real link.
Expected Behavior

The connected network's details should describe the AP the interface is associated with, and all fields of one row should come from the same AP.

Steps to Reproduce
  1. Have one SSID broadcast on both 2.4 GHz and 5 GHz (typical router setup).
  2. Connect to the 5 GHz BSSID, with the 2.4 GHz AP being the stronger one.
  3. Settings → Network → Wi-Fi → expand the connected network.
Error Messages/Logs

No errors in logs — the wrong values are produced by the merge logic.

Scope

Present on v2.1.2; backend_networkmanager_wifi.go is unchanged on master.

dms doctor -vC
                           
██████╗ ███╗   ███╗███████╗
██╔══██╗████╗ ████║██╔════╝
██║  ██║██╔████╔██║███████╗
██║  ██║██║╚██╔╝██║╚════██║
██████╔╝██║ ╚═╝ ██║███████║
╚═════╝ ╚═╝     ╚═╝╚══════╝

 System Health Check
                    
──────────────────────────────────────

  System
    ● Operating System ····· CachyOS
      └─ ID: cachyos, Version: rolling, Arch: amd64
    ● Architecture ········· amd64
    ● Display Server ······· Wayland
      └─ WAYLAND_DISPLAY=wayland-1

  Versions
    ● DMS CLI ·············· dms v2.1.2
      └─ /usr/bin/dms
    ● Quickshell ··········· Quickshell 0.3.2 (revision , distributed by Arch Linux)
      └─ /usr/bin/qs
    ● DMS Shell ············ v2.1.2
      └─ /run/user/1000/dms-shell/13e2e34644f9af14

  Installation
    ● DMS Configuration ···· Found
      └─ /run/user/1000/dms-shell/13e2e34644f9af14
    ● shell.qml ············ Present
      └─ /run/user/1000/dms-shell/13e2e34644f9af14/shell.qml
    ○ Install Type ········· Unknown
      └─ /run/user/1000/dms-shell/13e2e34644f9af14

  Compositor
    ● niri ················· 26.04
      └─ /usr/bin/niri
    ● Background Blur ······ Supported
      └─ Compositor supports ext-background-effect-v1

  Quickshell Features
    ● Polkit ··············· Available
      └─ Authentication prompts
    ● IdleMonitor ·········· Available
      └─ Idle detection
    ● IdleInhibitor ········ Available
      └─ Prevent idle/sleep
    ● ShortcutInhibitor ···· Available
      └─ Allow shortcut management (niri)
    ● BackgroundBlur ······· Available
      └─ Background blur API support in Quickshell

  Optional Features
    ● accountsservice ······ Available
      └─ User accounts
    ● power-profiles-daemon  Available
      └─ Power profile management
    ● logind ··············· Available
      └─ Session management
    ● cups-pk-helper ······· Not available (install cups-pk-helper)
      └─ Printer management
      → https://duxlabs.dev/docs/dms/cli-doctor#optional-features
    ○ I2C/DDC ·············· No monitors detected
      └─ External monitor brightness control
    ● qt6-imageformats ····· Installed (4 formats)
      └─ Formats: WebP, TIFF, GIF, ICNS (/usr/lib/qt6/plugins/imageformats:/usr/lib/qt/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
    ● kimageformats ········ Not installed
      └─ AVIF, HEIF, JXL support
      → https://duxlabs.dev/docs/dms/cli-doctor#optional-features
    ● Terminal ············· alacritty
    ● Network ·············· NetworkManager
      └─ NetworkManager present. Using NM API.
    ● matugen ·············· Installed
      └─ Dynamic theming
    ● cava ················· Missing
      └─ Audio visualizer
      → https://duxlabs.dev/docs/dms/cli-doctor#optional-features
    ○ khal ················· Not installed
      └─ Calendar events
    ○ dux-search ··········· Not installed
      └─ File search
    ○ dux-calendar ········· Not installed
      └─ Calendar app
    ● dux-files ············ Installed
      └─ File manager
    ○ fprintd ·············· Not installed
      └─ Fingerprint auth
    ● adw-gtk3 ············· Installed
      └─ GTK3 dynamic theming (user copy)

  Config Files
    ● settings.json ········ Present
      └─ /home/user/.config/dms/settings.json
    ● clsettings.json ······ Present
      └─ /home/user/.config/dms/clsettings.json
    ● plugin_settings.json · Present
      └─ /home/user/.config/dms/plugin_settings.json
    ● session.json ········· Present
      └─ /home/user/.local/state/dms/session.json
    ● dms-colors.json ······ Present
      └─ /home/user/.cache/dms/dms-colors.json

  Services
    ● dms.service ·········· enabled, active
      └─ Wanted by niri.service
    ○ greetd ··············· Not installed
      └─ Optional greeter service
    ● xdg-desktop-portal ··· Settings portal reachable

  Environment
    ○ QT_QPA_PLATFORMTHEME · Not set
    ○ QT_QPA_PLATFORMTHEME…  Not set
    ○ QS_ICON_THEME ········ Not set
    ○ XDG_MENU_PREFIX ······ Not set

  Fonts
    ● Normal Font ·········· Google Sans Flex
      └─ /run/user/1000/dms-shell/13e2e34644f9af14/DCommon/assets/fonts/google-sans-flex/GoogleSansFlex.ttf
    ● Monospace Font ······· Fira Code
      └─ /run/user/1000/dms-shell/13e2e34644f9af14/DCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf
    ● Display Font ········· DM Serif Display
      └─ /run/user/1000/dms-shell/13e2e34644f9af14/DCommon/assets/fonts/dm-serif-display/DMSerifDisplay-Regular.ttf

  ──────────────────────────────────────
  3 warning(s), 34 ok
Lenguaje dominante
QML
Estrellas
8.4k
Forks
549
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AvengeMedia/DankMaterialShell

Todos los issues de AvengeMedia/DankMaterialShell

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.