-
Notifications
You must be signed in to change notification settings - Fork 32
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
SCSI_NETWORK_WIFI_CMD_SCAN_RESULTS ignores transfer size #173
Comments
Agree, should truncate the response if the host asks for a specific len. WIFI_NETWORK_LIST_ENTRY_COUNT is 10 currently and it was just a nice round number to not take up too much RAM, as we are limited on the Pico. I suppose in apartments or the like there could be a lot more than 10 around you. If you'd like to PR the fix, we'd love to have it! |
I understand the limitation, but the problem is that even "at home", their may be entries from your neighbours that you are not interested in (unless you know their passwords ;) I guess its too late to change the interface, so the burden of storing/filtering the entries can be put to the host application instead? |
Just brainstorming.. since |
I think the intention was to sort by RSSI so that closer/stronger networks would appear first in the list, making it less likely that the one you care about is far down the list. But I guess I never wrote that.
|
But is that safe? What if some other command is sent, while the scan is in progress (possibly from some other application). |
Edit: whoops I was mistaken, you're right, we cant do this. |
PR just opened. I've no way to test it, but checked that it compiles atleast. |
cherry-picked and merged. |
In
BlueSCSI-v2/lib/SCSI2SD/src/firmware/network.c
Line 328 in df274ea
I don't know if this can cause trouble, since at most 10 wifi_network_entries are returned (using 2 + 10 * 74 bytes), but IMHO this should be fixed.
BTW, is there any way to increase that number of entries (WIFI_NETWORK_LIST_ENTRY_COUNT)?
The text was updated successfully, but these errors were encountered: