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

[meshcop] support non-standard TXT entries at runtime #2308

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

wgtdkp
Copy link
Member

@wgtdkp wgtdkp commented Jun 2, 2024

@wgtdkp wgtdkp requested review from superwhd and bukepo June 2, 2024 13:20
Copy link

codecov bot commented Jun 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 39.81%. Comparing base (2b41187) to head (bdee2bb).
Report is 676 commits behind head on main.

Files Patch % Lines
src/border_agent/border_agent.cpp 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2308       +/-   ##
===========================================
- Coverage   55.77%   39.81%   -15.97%     
===========================================
  Files          87       89        +2     
  Lines        6890     9873     +2983     
  Branches        0      727      +727     
===========================================
+ Hits         3843     3931       +88     
- Misses       3047     5744     +2697     
- Partials        0      198      +198     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wgtdkp wgtdkp requested a review from superwhd June 5, 2024 06:00
@wgtdkp wgtdkp force-pushed the wgtdkp-txt-vgh branch 2 times, most recently from 8653d98 to fc1cdb0 Compare June 5, 2024 06:12
Copy link
Contributor

@superwhd superwhd left a comment

Choose a reason for hiding this comment

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

LGTM overall 👍

In the future we may want to unify the two ways (D-BUS, Android overlay) for customizing meshcop TXT for better readability.

src/border_agent/border_agent.cpp Show resolved Hide resolved
Copy link
Member

@bukepo bukepo left a comment

Choose a reason for hiding this comment

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

can we use the existing HandleUpdateVendorMeshCoPTxtEntries?

@wgtdkp
Copy link
Member Author

wgtdkp commented Jun 5, 2024

can we use the existing HandleUpdateVendorMeshCoPTxtEntries?

That one doesn't support overriding the vendor or product name

@bukepo
Copy link
Member

bukepo commented Jun 6, 2024

can we use the existing HandleUpdateVendorMeshCoPTxtEntries?

That one doesn't support overriding the vendor or product name

I think we should allow overriding these fields by dbus api as well.

@wgtdkp
Copy link
Member Author

wgtdkp commented Jun 6, 2024

can we use the existing HandleUpdateVendorMeshCoPTxtEntries?

That one doesn't support overriding the vendor or product name

I think we should allow overriding these fields by dbus api as well.

I am not sure that's a good idea. The SetMeshCopServiceValues method for Android is documented clearly that this must be called before BorderAgent is enabled, so that it won't cause a vendor or model name change which will cause unexpected behavior - mobile devices are depending on the names to take specific actions. Generally, it doesn't sound reasonable for a device to be Google Border Router at T1 and then changes to be Apple Border Router at T2.

It would require the dbus client side change if you want to ensure that advertised vendor name never changes for dbus-controlled device. But this is out of scope I think.

@wgtdkp wgtdkp requested a review from bukepo June 11, 2024 11:43
@wgtdkp wgtdkp requested a review from jwhui June 11, 2024 11:49
@jwhui jwhui changed the title [Thread] support non-standard TXT entries at runtime [meshcop] support non-standard TXT entries at runtime Jun 11, 2024
@jwhui jwhui merged commit 18ee595 into openthread:main Jun 11, 2024
30 checks passed
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.

4 participants