-
Notifications
You must be signed in to change notification settings - Fork 3k
[mbed-os-5.15] Network interface MAC address set/get #13920
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
[mbed-os-5.15] Network interface MAC address set/get #13920
Conversation
@artokin, thank you for your changes. |
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.
No tests
Pull request has been modified.
Unit tests fixed and set_mac_address signature updated. |
/** Set the MAC address to the interface. | ||
* | ||
* Provided MAC address is set the the network interface. Address must be | ||
* set before calling the interface connect() method. EUI-48 MAC addresses |
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.
My only question here is should we mention that this must be unique globally and there are places where to get these and also that some interfaces already have an unique MAC address written in HW and this should not be called on those interfaces
Sort of own chapter on the possible hazards if this API is called without proper knowledge
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.
Method description updated, please re-review.
Travis fix is on 5.15 branch, once you rebase we shall start CI |
Add method set_mac_address to set network interface MAC address.
Add support to set and get MAC address from EMAC interface.
Remove unnecessary method: add_ethernet_interface_ns
Use nsapi_size_t instead of size_t. Update missing method description.
-Update method set_mac_address description -Update EMAC test method return value
Do not fail EMAC interface during connect if MAC address change is not supported in the selected interface.
Use path in "mbed-trace/mbed_trace.h" to keep unittest happy.
-Uncomment get_mac_address -Document set_mac_address
-Remove Nanostack::add_ethernet_interface API change -Add get_mac_address to MeshEthernetInterface
A new method has been added to the NetworkInterface. Therfore WICED library needs to be rebuild for ARMC6. Update WICED binaries for: -MTB_ADV_WISE_1530 -MTB_MXCHIP_EMW3166 -MTB_USI_WM_BN_BM_22
1ba0f97
to
7199a3a
Compare
@0xc0170 , rebase is now made, would you please start the CI run. |
CI started |
Test run: FAILEDSummary: 1 of 10 test jobs failed Failed test jobs:
|
CI restarted |
Test run: SUCCESSSummary: 10 of 10 test jobs passed |
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.
Approved.
Summary of changes
Add method set_mac_address that Application can use to set MAC address to the interface.
Update get_mac_address to return MAC address correctly from EMAC.
This PR is copied from: #13902
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@juhhei01 , @JarkkoPaso , @mikaleppanen , @mikter