Skip to content

fix(cell-info): drop non-finite measurements - #8

Draft
pjeweb wants to merge 1 commit into
osb/pr/fuzz-property-testsfrom
osb/pr/cell-info-nonfinite
Draft

pjeweb wants to merge 1 commit into
osb/pr/fuzz-property-testsfrom
osb/pr/cell-info-nonfinite

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 22, 2026

Copy link
Copy Markdown

A D-Bus double can be NaN or an infinity. As an rsrp it made compareServing return NaN, so selectServingCell picked a different cell depending on the order the modem listed them, which the function documents as impossible.

  • pci, rsrp, rsrq and sinr that are not finite numbers are now treated as absent.
  • Regression tests cover NaN and both infinities and check every ordering of a set with one NaN rsrp; the cell-info properties now generate non-finite values.

The new tests fail on main. Sits on the property test PR.

A D-Bus double can be NaN or an infinity. As an rsrp it made compareServing return NaN, so selectServingCell picked a different cell depending on the order the modem listed them. Non-finite pci, rsrp, rsrq and sinr values are now treated as absent.
@pjeweb pjeweb added upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. stacked Depends on another pull request; review and integrate parents first. parked Parked or held for now; not planned for a train until picked up again. labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parked Parked or held for now; not planned for a train until picked up again. stacked Depends on another pull request; review and integrate parents first. upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal.

Development

Successfully merging this pull request may close these issues.

1 participant