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

WIP: Allow routing on top of AP-client links, keep general and specific wifi settings separate, fix #415 #551

Closed
wants to merge 11 commits into from

Conversation

ilario
Copy link
Member

@ilario ilario commented Jul 25, 2019

LibreMesh by default creates 3 wireless interfaces on each radio and emploies the IEEE802.11s one for routing.
Up to now, access point-client wifi connections (AP-sta) was possible to use for routing with BMX6 as described in #426.
For the next release, BMX6 is not going to be included while Babeld will be.

The usage of AP-sta connections for the backbone can have the following advantages:
nearly every OpenWrt-supported router can be employed for a LibreMesh network; and the AP and client drivers are more tested than the IEEE802.11s drivers.

This PR allows the user to set up an AP interface (using interface specific configuration) out of the br-lan bridge removing the hardcoded setting network equal to lan from the mode/ap.lua and the mode/apname.lua scripts.
This implies that an option ap_network 'lua' and an option apname_network 'lua' will have to be explicitly set in the configuration for having a normal usage. This was added to /etc/config/lime-defaults-factory.

As implemented in eadcc14 and in db1c350, the general wireless configuration is also used as a default for the specific interface configuration, making impossible (I think) to not set the option network for the specific interface configuration needed for the automatic setting of it by OpenWrt.
For this reason, this has been removed.
The use of specific configuration will not keep any setting from the generic configuration for this radio, so that some users could have to update their configurations.
This has been reflected in lime-example file.

In lime-example, there is also an example of configuration for an AP with VLAN and Babeld + Batman-adv and also for a client with the same protocols.

@ilario
Copy link
Member Author

ilario commented Jul 26, 2019

I thought that rather than using the apname I can create a new mode and proto apbackbone (and also clientbackbone).

In that case I would not need to remove the hardcoded lan from mode/ap and mode/apname and neither I would need to remove tableMelt.

@G10h4ck G10h4ck changed the title Allow routing on top of AP-client links, keep general and specific wifi settings separate, fix #415 WIP: Allow routing on top of AP-client links, keep general and specific wifi settings separate, fix #415 Jul 26, 2019
@ilario
Copy link
Member Author

ilario commented Aug 2, 2019

Finally, clientbackbone is not useful and I rewrote the apbackbone part in #554, closing.

@ilario ilario closed this Aug 2, 2019
ilario added a commit that referenced this pull request Sep 8, 2019
Allow routing on top of AP-client links, rewrite of #551, fix #415
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.

None yet

1 participant