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

Enable dual wifi interfaces, one as an AP - one as the wifi #1

Open
sabhiram opened this issue Feb 5, 2015 · 0 comments
Open

Enable dual wifi interfaces, one as an AP - one as the wifi #1

sabhiram opened this issue Feb 5, 2015 · 0 comments

Comments

@sabhiram
Copy link
Owner

sabhiram commented Feb 5, 2015

Opened to continue this reddit discussion.

Would be a pretty simple addition, although some of the code will just assume that wlan0 is the device for configuring.

Ideally we would expose these config options in the config.json file:

   "access_point": {
        "force_reconfigure": false,
        "wifi_interface":    "wlan0",
        "ssid":              "rpi-config-ap",
        "passphrase":        "zzzzzzzz",
        "domain":            "rpi.config",
        "ip_addr":           "192.168.44.1",
        "netmask":           "255.255.255.0",
        "subnet_ip":         "192.168.44.0",
        "broadcast_address": "192.168.44.255",
        "subnet_range": {
            "start":         "192.168.44.10",
            "end":           "192.168.44.50"
        }
    },

    /* New AP fields */
    "ap_interface": "wlan1",
       ... 

    },

    ... other non AP config stuff

I am thinking the server.js file can just check to see how many interfaces are supported as part of the wifi_manager's export function opening. This way any-time wifi_manager is required, we will setup the number of interfaces available.

Then, in the code which enables the AP / Wifi, we would have to check to see if we are in dual mode or single mode. Based on this mode, we would need to reconfigure the interface (or just re-enable it if we have used both interfaces before).

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant