-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cellular: Fix BG96 AT driver for IPv6 #11246
Conversation
@AriParkkila, thank you for your changes. |
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
Show resolved
Hide resolved
CI started |
@@ -57,8 +57,8 @@ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = { | |||
1, // AT_CMGF | |||
1, // AT_CSDH | |||
1, // PROPERTY_IPV4_STACK | |||
0, // PROPERTY_IPV6_STACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is causing DNS resolving problems due to the way _stack_type is currently used when BG96 socket is created.
Modem might get only IPv4 address eventhough the PDP context is IPV4V6 and because stack type is set as PDP type => _stack_type set as IPV4V6 => IP_address for the socket opening set to "0:0:0:0:0:0:0:1" => fails to send DNS requests.
_stack_type requires to be set according to the IP address(es) modem is assigned by network. IPV4 for only IPV4 address, IPV6 for only IPV6 address, IPV4V6 when both IPV4 and IPV6 address are assigned by network.
Some kind of fix is needed before we cand do these stack PROPERTY changes since they are breaking the DNS resolving?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If nothing else changes, at least (_stack_type == IPV6_STACK) ? "0:0:0:0:0:0:0:1":"127.0.0.1" might be better check than
(_stack_type == IPV4_STACK) ? "127.0.0.1" : "0:0:0:0:0:0:0:1".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything to address here? I set this to needs: review just in case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once answered (all good?), we can merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mirelachirica Please re-review, no more property flag changes in this PR.
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
1f47a33
to
110fb7d
Compare
CI started |
restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Fix BG96 AT driver to support IPv6 addressing.
Pull request type
Reviewers
@mirelachirica
Release Notes