-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Fixed network connect/disconnect #8192
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
Conversation
|
@mirelachirica @jarvte please review |
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.
You don't know if it's activated until you check the error from athandler
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.
even if there is an error in ppp disconnect we should take control of filehandle to athandler and deactivate context.
Reasoning: ppp disconnect in any case releases filehandle
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.
only deactive ... :)
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.
not in line with disconnect methods where we call NSAPI_STATUS_DISCONNECTED only in case of success
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.
Should we return nsapi_error_t e.g. : return _is_context_active ? NSAPI_ERROR_OK : NSAPI_ERROR_NO_CONNECTION;
and give cid as reference?
1f2cebd to
d166d0f
Compare
|
@jarvte please re-review |
d166d0f to
0a3a30d
Compare
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 deregisters from network. Better be done in registration routine not in this detach from PS domain. Set_registration could have true/false param for register/deregister.
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.
@AriParkkila Any update required for this PR?
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 comment must still be handled, I will try to fix that soon.
0a3a30d to
fd6b897
Compare
|
@mirelachirica please review |
fd6b897 to
5cb3ad9
Compare
|
@AriParkkila Can every bullet in the description, or at least some, be own commit? |
…cks in URC handler add/remove
5cb3ad9 to
3e4e19b
Compare
|
@mirelachirica please review |
|
Please review unittest failures |
|
UnitTests can fixed after #8315 is merged. |
|
The code base will change and these changes are coming in another PR. |
Description
Fixed cellular network connect and disconnect to handle PDP context more gracefully.
Commit 1: Fix Greentea
Commit 2: Fix ATHandler
Commit 3: Add to Cellular network
Commit 4: Change cellular statemachine
Pull request type