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

Comments

Projects
None yet
2 participants
@johnnyman727
Copy link
Contributor

commented Jul 19, 2014

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

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2014

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

@johnnyman727

This comment has been minimized.

Copy link
Contributor Author

commented Jan 15, 2015

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 referenced this issue Jan 17, 2015

Open

Network discovery cap #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.