Skip to content

Wi-Fi scan shows **** signal for every network and no frequency #154

Description

@eliasbakken

Found testing v1.1.0-RC8-2-g23a2bb6 on A8 s/n 0498 (rtw88 dongle).

A scan returns 9 networks, from a very close AP to faint neighbours. Every one shows the same signal, and frequency is always empty:

{"frequency":"","signal":"****","flags":"psk","SSID":"The Merlins"}
{"frequency":"","signal":"****","flags":"psk","SSID":"Kraakeslottet"}
... all nine "****"

The dropdown therefore reads Kraakeslottet **** for everything.

Why

iwctl station wlan0 get-networks prints signal as four asterisks and marks the unfilled ones with an ANSI colour. wifi-scan strips the colour codes first (sed $'s/\x1b\[[0-9;]*m//g'), so every network comes out as ****. Nothing fills frequency.

Suggested direction

Count the uncoloured stars before stripping, or read RSSI another way (iwctl station wlan0 get-bsses, or iw dev wlan0 scan dump for dBm and frequency). The client already has signalBars() for dBm.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions