-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
drivers: ieee802154: rf2xx: Add EUI-64 from DT and iface no auto start #24096
drivers: ieee802154: rf2xx: Add EUI-64 from DT and iface no auto start #24096
Conversation
cb65946
to
79e5fde
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.
no need of the 2nd patch
Add local-mac-address on DT and enable it on rf2xx driver. If user define local-mac-address this value will be used as default mac address. Otherwise driver automatically add a random mac address. On application level user can change default mac address using net_mgmt command with NET_REQUEST_IEEE802154_SET_EXT_ADDR parameter defined on include/net/ieee802154_mgmt.h header. Signed-off-by: Gerson Fernando Budke <[email protected]>
79e5fde
to
906a1e2
Compare
906a1e2
to
f2482d9
Compare
The new proposal: if for any reason CONFIG_IEEE802154_RF2XX_NET_IF_NO_AUTO_START should be defined as true, who did that should call net_if_up() at some point. |
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.
Looks good, one nit about the config option.
Add a Kconfig option that allows user to set any necessary config using management interface before interface be operational. A use case is set the EUI-64 address from an external EEPROM by the NET_REQUEST_IEEE802154_SET_EXT_ADDR command. After all configs are done net_if_up() can be invoked to bring interface up. Fixes zephyrproject-rtos#23193. Signed-off-by: Gerson Fernando Budke <[email protected]>
f2482d9
to
63a95dd
Compare
Add local-mac-address on DT and enable it on rf2xx driver. If user define local-mac-address this value will be used as default mac address. Otherwise driver automatically add a random mac address.
On application level user can change default mac address using net_mgmt command with NET_REQUEST_IEEE802154_SET_EXT_ADDR parameter defined on include/net/ieee802154_mgmt.h header.
Refactor get_mac to rf2xx_get_mac and turn it as a weak method. This allows any user to create their own set mac address. This is important because RF2xx is a transceiver over SPI and may need mac address be defined when system is booting.Add a Kconfig option that sets NET_IF_NO_AUTO_START at driver init. This way user can control when net_if will be up with proper configuration.
Fixes #23193
Signed-off-by: Gerson Fernando Budke [email protected]