Skip to content

networking: add frequency, bssid, and other details to WifiNetwork - #988

Open
detluck wants to merge 1 commit into
quickshell-mirror:masterfrom
detluck:feat/wifi-details
Open

detluck wants to merge 1 commit into
quickshell-mirror:masterfrom
detluck:feat/wifi-details

Conversation

@detluck

@detluck detluck commented Aug 24, 2026

Copy link
Copy Markdown

Summary

This PR exposes additional 802.11 access point properties from NetworkManager to Quickshell.Networking.WifiNetwork. These properties allow desktop shells to filter networks by frequency band (2.4 GHz vs 5 GHz), and display router MAC addresses and maximum link speeds in network detail views without spawning external CLI tools.

Added Properties to WifiNetwork

  • frequency (quint32): The radio frequency in MHz (useful for determining 2.4 GHz, 5 GHz, or 6 GHz bands).
  • bssid (QString): The hardware MAC address of the access point.
  • maxBitrate (quint32): Maximum bitrate supported by the access point in Kbps.
  • bandwidth (quint32): Channel bandwidth announced by the access point in MHz (e.g. 20, 40, 80, 160).
  • lastSeen (qint32): Timestamp in CLOCK_BOOTTIME seconds when the access point was last seen in scan results.

@cpwrs cpwrs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple comments. Could you add the properties to the manual test as well?
Looks good besides that.

We planned on eventually adding full AP exposure. For example with an AccessPoint class, WifiNetwork.accessPoints list and WifiNetwork.activeAccessPoint ptr.

I'm OK with getting these properties merged though. They could still exist as convenient accessors after the full AP API is added.

Comment thread src/network/nm/network.cpp Outdated
Comment thread src/network/nm/network.cpp
@detluck
detluck force-pushed the feat/wifi-details branch from 0537294 to 740f573 Compare August 24, 2026 16:41
@detluck
detluck requested a review from cpwrs August 24, 2026 17:20

@cpwrs cpwrs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me! I'm getting 0 (unknown) for every bandwidth, but that's probably my driver or backend.

Comment thread src/network/wifi.hpp Outdated
@detluck
detluck force-pushed the feat/wifi-details branch from 740f573 to a328325 Compare August 24, 2026 20:33
@detluck
detluck requested a review from cpwrs August 24, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants