netopt/drivers: Add phy link status output#8601
Merged
miri64 merged 4 commits intoRIOT-OS:masterfrom Mar 18, 2018
Merged
Conversation
Member
Author
|
The w5100 doesn't seem to support reporting link status information :( |
miri64
reviewed
Mar 15, 2018
Member
miri64
left a comment
There was a problem hiding this comment.
Code-wise ACK. Don't have the hardware to test.
Member
|
Maybe @kaspar030 can test? |
Member
Author
|
Netdev_tap support seems a bit complicated. While it is possible to put the tap device in a |
Member
miri64
requested changes
Mar 17, 2018
sys/include/net/netopt.h
Outdated
| NETOPT_IS_WIRED, | ||
|
|
||
| /** | ||
| * @brief Get the Phy link status. |
Member
|
(If |
2c94071 to
eb9e2da
Compare
Member
Author
|
Squashed!
Yes, I probably just lack the correct knowledge about how to get the information via some syscall. |
This was referenced Mar 11, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Contribution description
This PR adds netopt support to query the status of the phy link of a network driver, whether a cable is attached and the link is functional. Output for the ifconfig command to report this status is added.
Issues/PRs references
None
Todo
Other drivers beside the enc28j60:
w5100