-
Notifications
You must be signed in to change notification settings - Fork 92
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
Abuse esp_mesh_scan_get_ap_record
to reduce stack use of scan_results
#224
Conversation
Interesting but .... mhhhh - I'm not super convinced to be honest The fact it doesn't work for all chips already doubles that. As you already said "My main worry is that any new binary blob may break this." - I agree we can handle that but it potentially adds additional trouble when updating the blobs (which sometimes is already enough trouble) But the main thing is that it doesn't get us too much. With 10 records requested it looks like this
Given |
Well I'm not fighting for this, though I really would like to see a non- Oh well, one can hope :) Also, I think this isn't too much trouble to keep rebased, so I might just do that in case someone wants it.
|
a17559d
to
9a584ad
Compare
2db70a2
to
f3a69a4
Compare
@MabezDev have you been able to find out anything about this? (i.e. if this function is planned to be further restricted or if the relevant team could make it instead more generally available for "normal wifi" and, e.g. for the C2?) |
Good news, with the latest WiFi blobs the API is available. The relevant pull request is yet to land in esp-idf, but the signature of the function is as follows:
The next time we update the blobs we can modify this PR and merge it :). |
The blobs have been updated and the API is now available. |
Noted; I'm a bit swamped right now but if nobody jumps in I will get to this... eventually |
Thanks! |
Based on #221. I suspect relying on weird internal implementation details (i.e. that we can just call a mesh api function without actually using wifi mesh) might not be very elegant, but it works. We probably will need to flush the scan results still, I just wanted to upload the initial findings :)
It looks like C2 will need to remain on the non-mesh code.
My main worry is that any new binary blob may break this. Now, the binaries esp-wifi uses are in our hands, so it's possible to test for such breakage, but it is probably additional work on each blob update.