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 in an infinite loop #46

Open
johnnyman727 opened this issue Jul 19, 2014 · 2 comments · May be fixed by #127
Open

Listing Wifi networks in an infinite loop #46

johnnyman727 opened this issue Jul 19, 2014 · 2 comments · May be fixed by #127

Comments

@johnnyman727
Copy link
Contributor

I don't have a repro test case yet, but sometimes when running tessel wifi -l, Tessel will output the names of the same networks in a loop, forever.

@jiahuang
Copy link
Contributor

I found this to be more likely to happen if there are a lot of wifi networks around.

@johnnyman727
Copy link
Contributor Author

It's pretty obvious that the problem here is the while(true) loop.

Our current process continues to call wlan_ioctl_get_scan_results to fetch information about each network "while they are available". When a Tessel is in an area with a bunch of WiFi networks, I think it's possible, that the CC3000 updates the scan results faster than we print them out, leading to an infinite loop. Instead, we should use the number of results as the range of a for loop that prints out the available networks.

@ghost ghost linked a pull request Jan 17, 2015 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants