Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][TC-DGWIFI-2.1] BeconRxCount attribute value mismatches from specification #25747

Closed
Survensa opened this issue Mar 20, 2023 · 8 comments
Closed
Labels
app-clusters Application cluster work bug Something isn't working cert blocker needs owner
Milestone

Comments

@Survensa
Copy link

Survensa commented Mar 20, 2023

Feature Area

Other

Test Case

TC-DGWIFI-2.1

Reproduction steps

  1. Bring up the DUT with all-cluster-app.
  2. Pair the DUT using chip-tool through "ble-wifi" transport.
  3. Run the command ./chip-tool wifinetworkdiagnostics read beacon-rx-count 1 0

Bug prevalence

Whenever I try to read beacon-rx-count.

GitHub hash of the SDK that was being used

2767b51 - Master

Platform

raspi

Platform Version(s)

RPI4 8GB RAM

Anything else?

As per spec the BeaconRxCount attribute SHALL indicate the count of the number of received beacons. The total number of expected beacons that could have been received during the interval since association SHOULD match the sum of BeaconRxCount and BeaconLostCount. If the Node does not have an ability to report count of beacons received, this value MAY remain set to zero.

In master commit while trying to read the BeaconRxCount TH reads NULL from DUT.

image

Attached log for reference: TC-DGWIFI-2-2.txt

@bzbarsky-apple
Copy link
Contributor

The Linux version of DiagnosticDataProvider does not implement GetWiFiBeaconRxCount so the count is not available and null is returned.

Sounds like it should be implemented and return 0 when we are associated. Similar for BeaconLostCount.

I wonder whether we can just automatically do this in the wifi network diagnostics cluster if we get CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE....

@github-project-automation github-project-automation bot moved this to Open Cert Blockers in [Certification] Blockers Jun 28, 2023
@Survensa Survensa added app-clusters Application cluster work bug Something isn't working labels Jul 10, 2023
@cjandhyala cjandhyala added this to the 1.2 milestone Aug 10, 2023
@woody-apple woody-apple modified the milestones: 1.2, Future Sep 19, 2023
@cecille
Copy link
Contributor

cecille commented Sep 29, 2023

Null is a valid value here though. There is an X in the quality column. So if you're getting back null, that's valid, and if the test plans says otherwise, we should fix the test plan.

@bzbarsky-apple
Copy link
Contributor

Null is a valid value here though

Not when the device is actually attached to a wifi network @cecille.

@cecille
Copy link
Contributor

cecille commented Oct 2, 2023

Does it actually say that? The spec says the value MAY remain zero, but there's nothing that says it has to be non-null if you're connected.

@bzbarsky-apple
Copy link
Contributor

The spec says:

For all attributes listed above, a null value SHALL be returned if the interface is not currently configured or operational.

It should probably be clearer about this, but the intent as I recall it was that if not configured you get null, else you get non-null values. We just had a really hard time getting people to clearly write things out for each attribute....

@cecille
Copy link
Contributor

cecille commented Oct 4, 2023

Oh, interesting. OK, I think I it kind of makes sense then to assume that the opposite also applies, though it might be good to clarify. I suppose the de-facto rule is whatever we implement in the SDK, so if you want 0 returned, we should do that since that's definitely allowed in the spec.

@bzbarsky-apple
Copy link
Contributor

I think 0 would make a lot of sense here, yes.

@Survensa
Copy link
Author

Issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-clusters Application cluster work bug Something isn't working cert blocker needs owner
Projects
Archived in project
Development

No branches or pull requests

6 participants