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

Listing wifi networks only works the first time until reboot #350

Closed
johnnyman727 opened this issue Sep 29, 2015 · 5 comments
Closed

Listing wifi networks only works the first time until reboot #350

johnnyman727 opened this issue Sep 29, 2015 · 5 comments

Comments

@johnnyman727
Copy link
Contributor

➜ t2-cli git:(jon-erase) ✗ t2 wifi -l
INFO Looking for your Tessel...
INFO Connected to Folly over LAN
INFO Scanning for available networks...
INFO Currently visible networks (26):
INFO technicallyHome (57/70)
INFO Fried Chicken Sandwich (53/70)
INFO xfinitywifi (45/70)
INFO XFINITY (45/70)
INFO CableWiFi (45/70)
INFO Oy Francisco (45/70)
INFO NETGEAR61 (43/70)
INFO NETGEAR11 (35/70)
INFO ATT5Q5Y3R2 (35/70)
INFO xfinitywifi (29/70)
INFO CableWiFi (29/70)
INFO XFINITY (27/70)
INFO Ergo (27/70)
INFO CableWiFi (25/70)
INFO Friendship Pizza (25/70)
INFO XFINITY (25/70)
INFO xfinitywifi (25/70)
INFO xfinitywifi (25/70)
INFO ATT496 (25/70)
INFO moms comp (23/70)
INFO The Hittite Network (23/70)
INFO xfinitywifi (23/70)
INFO HOME-F652 (21/70)
INFO 2NORA968 (21/70)
INFO freekucho (21/70)
INFO HOME-D338 (21/70)
➜ t2-cli git:(jon-erase) ✗ t2 wifi -l
INFO Looking for your Tessel...
INFO Connected to Folly over LAN
INFO Scanning for available networks...
INFO Currently visible networks (0):

@reconbot
Copy link
Member

I've observed this too but after a few scans, not right away.

@johnnyman727
Copy link
Contributor Author

Interesting, thanks for the input @reconbot!

@johnnyman727
Copy link
Contributor Author

@kteza1 I have confirmed that running the command we use to get a scan of wifi networks (ubus call iwinfo scan '{"device":"wlan0"}') only works the first time on OpenWRT. Do you have any idea why that is or an alternative command we can use?

@johnnyman727
Copy link
Contributor Author

I haven't confirmed why the command we are currently using only returns data once but I have confirmed another option:
iwinfo wlan0 scan

We will just need to change how we parse and display the JSON data after switching to this new command.

@johnnyman727
Copy link
Contributor Author

Gah this is frustrating. My Tessel, with the ap turned off and station mode turned off, will reliably return results with the old method of requesting networks. My Tessel also seems unable to connect to networks that it used too but I'm not confident that is related.

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

2 participants