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

t2 ap #87

Closed
Frijol opened this issue May 4, 2015 · 9 comments
Closed

t2 ap #87

Frijol opened this issue May 4, 2015 · 9 comments

Comments

@Frijol
Copy link
Member

Frijol commented May 4, 2015

Current status: no such command

Spec: T2 CLI spec
tessel ap [-n ] [-p ] [-s ] [on | off]

Creates a wireless access point.

$ tessel ap
> Usage: tessel ap [-n <ssid>] [-p <pass>] [-s <security>] [on | off]
>  -n <ssid>:      name of the network
>  -p <pass>:      password to access network
>  -s <security>:  encryption to use on network (i.e. WEP, WPA, PSK)
>  on:             bring up an access point that’s turned off
>  off:            turn off the access point
$

$ tessel ap -n test-network
> Created access point “test-network”
$ 

$ tessel ap off
> Turned off access point “test-network”
$ 

$ tessel ap -n test-network -p secret
> Created password protected access point “test-network”
$ 

$ tessel ap -n test-network -p secret -s WPA
> Created password protected access point “test-network” secured with WPA
$ 

$ tessel ap off
> Turned off access point “test-network”
$ tessel ap on
> Turned on access point “test-network”
$ 
@Frijol Frijol added the spec-cli label May 4, 2015
@Frijol Frijol mentioned this issue May 5, 2015
15 tasks
@Frijol Frijol added this to the Complete Speculation milestone Jul 14, 2015
@Frijol Frijol removed this from the Complete Speculation milestone Jul 24, 2015
@Frijol
Copy link
Member Author

Frijol commented Oct 23, 2015

What is an entry point for this issue/relevant docs? @kevinmehall probably

@kevinmehall
Copy link
Member

Things to look at are http://wiki.openwrt.org/doc/uci/wireless + the existing code for t2 wifi. It will need to add a second wifi-iface and configure it.

@Frijol
Copy link
Member Author

Frijol commented Oct 23, 2015

Thanks!

@HipsterBrown
Copy link
Contributor

I was looking into doing this before seeing this issue. Looks pretty straightforward. I know the default settings are available here: https://github.com/tessel/openwrt-tessel/blob/6a4021b1ff100d9bdd2200d7d14f4cea5c86312f/files/etc/config/wireless

@kevinmehall Are there two wifi-devices? Or a different mode we can set to support a station and ap?

@johnnyman727
Copy link
Contributor

👏 go get 'em @HipsterBrown!

@johnnyman727
Copy link
Contributor

And to answer your other question, we can set up multiple wifi-devices.

@HipsterBrown
Copy link
Contributor

@johnnyman727 I'm a bit stumped about setting up another wifi-device and wifi-iface after looking through this doc and this setup page.

According to the former link:

mac80211 STA mode supported on trunk. STA and AP at the same time is not yet supported(r22989).

Which has me wondering if we can change the mode of the radio0 wifi-device OR can we register another wifi-device called radio1 to setup as an access point? Maybe I need to just try some stuff out and see what works.

@kevinmehall
Copy link
Member

You can create multiple wifi-ifaces on the same wifi-device, but you can't create a new wifi-device, because that represents a hardware PHY.

That doc is outdated -- the commit referenced is from 2010. I've done it on T2 just by adding another wifi-iface block and putting it in the right firewall zone. The only limitation is that all the networks joined or created have to be on the same channel.

@HipsterBrown
Copy link
Contributor

putting it in the right firewall zone

Could you clarify this a bit more? Is this something set in the wifi-iface or the wifi-device config?

If a password is given but no security option, what should we set as the default security?

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

No branches or pull requests

4 participants