Skip to content

Conversation

@lukas-mbag
Copy link
Contributor

@lukas-mbag lukas-mbag commented Oct 29, 2025

Extended the BSS type by adding both Signal Strength Values as present in the current iw implementation (v6.17) of the function static int print_bss_handler(struct nl_msg *msg, void *arg) in [scan.c].(https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git/tree/scan.c?h=v6.17)

This especially improves the ScanResults received from func (c *client) AccessPoints(ifi *Interface) ([]*BSS, error) which had been introduced in #117. It is now possible to sort the scan results by Signal Strength.

Signal Strength in the netlink message is in mDb which allows for two significant figures after the decimal point in the unit dBm. Conversion is a Factor 100 as in the doc string. Storing the mBm as an int seems cleaner than adding a float for the dBm.

The program was tested solely for our own use cases, which might differ from yours.

Lukas Raffelt < [email protected] > on behalf of Mercedes-Benz Tech Innovation GmbH, Provider Information

Licensed under MIT

@lukas-mbag lukas-mbag changed the title feat: add signal strength attributes to BSS struct and update tests feat: add signal strength attributes to BSS struct Oct 29, 2025
Copy link
Collaborator

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Thanks!

@SuperQ SuperQ merged commit 927637e into mdlayher:main Oct 30, 2025
6 checks passed
@lukas-mbag lukas-mbag deleted the feat-extend-BSS branch October 30, 2025 09:11
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