Skip to content
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

Network: Made Kconfig to border router module #298

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

RocioRojas
Copy link
Contributor

@RocioRojas RocioRojas commented Jul 7, 2022

Contribution description

Made kconfig to border router module with the kconfig sets the configuration to wired or wireless interface

Testing procedure

Run in terminal make menuconfig, look for the option border router and choose between wired o wireless interface.

Issues/PRs references

@RocioRojas RocioRojas added this to the 0.22.12-RC1 milestone Jul 7, 2022
@RocioRojas RocioRojas added Status: WIP This PR is a work in progress and removed Status: WIP This PR is a work in progress labels Jul 7, 2022
Copy link
Collaborator

@CW-75 CW-75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that actually the modification, makes only settable only an interface (WIRED or WIRELESS). The border router has able to set both interface params.

firmware/network/border_router/Kconfig Outdated Show resolved Hide resolved
firmware/network/border_router/border_router.c Outdated Show resolved Hide resolved
@RocioRojas RocioRojas force-pushed the kconfig branch 3 times, most recently from bfa4907 to 6d8b36b Compare July 10, 2022 22:38
@RocioRojas RocioRojas force-pushed the kconfig branch 3 times, most recently from 48d763c to 8e037d4 Compare July 10, 2022 23:13
@RocioRojas RocioRojas force-pushed the kconfig branch 2 times, most recently from 422712f to ddcee66 Compare July 10, 2022 23:21
Copy link
Collaborator

@CW-75 CW-75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable values to int in the kconfig interface could throw an error if an user set both interfaces in the same int value

/home/eduardo-az/github-forks/m4a-firmware/firmware/network/border_router/border_router.c: In function 'border_router_setup':
/home/eduardo-az/github-forks/m4a-firmware/firmware/network/border_router/border_router.c:36:5: error: duplicate case value
   36 |     case CONFIG_WIRELESS_INTERFACE:
      |     ^~~~
/home/eduardo-az/github-forks/m4a-firmware/firmware/network/border_router/border_router.c:33:5: note: previously used here
   33 |     case CONFIG_WIRED_INTERFACE:
      |     ^~~~
      ```

firmware/network/border_router/Kconfig Outdated Show resolved Hide resolved
Copy link
Collaborator

@CW-75 CW-75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, it's time to merge it

@luisan00 luisan00 merged commit 12c9227 into Mesh4all:main Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants