Closed dibdot closed 5 years ago
Hi,
I'll fix the mixed WPA3 reporting. About hidden scan results; what do you expect to receive? An entry with the SSID set to an empty string like iw does it?
Cheers, Jo
Hi,
thanks for the fast response. If I remember correctly, iwinfo has reported "unknown" as ssid for hidden networks in the past.
Okay, I checked how iw
reacts to hidden SSIDs and simply reports SSID:
(empty string). I'll do the same for iwinfo. Returning unknown in the Lua table is not ideal as there might be a visible network called unknown
.
OK, I'll change that in travelmate then. In the past the hidden unknown
ssid was delivered without double quotes, while all real ssid are protected by double quotes.
This is right for the iwinfo ... scan
cli output, but the Lua table data does not quote the SSIDs.
Yep, you're right. Travelmate backend uses iwinfo scan cli, while the luci frontend will use the lua table data ... maybe not the best approach. ;-)
Okay, I'm going to push my fixes now. For hidden networks, the .ssid
field in the Lua tables will be unset / not existing, so you can use something like local ssid = entry.ssid or "unknown"
That's cool - many thanks! Does it fix the iwinfo scan cli, too? Because currently these hidden stations won't be listed at all.
Yes, it will fix both places. The error actually happens when scanning is performed through wpa_supplicant instead of nl80211, in this case entries without SSID were incorrectly skipped.
Perfect, thanks again!
Updates pushed to master and 19.07
Hi Jo,
currently I would like to add WPA3 support to luci-app-travelmate. In the past I've used 'luci.sys.wifi.getiwinfo' to gather all relevant information on my wifi scan result page, e.g.:
If I check the debug output, the encryption description is usually OK, even for the new WPA3 modes ... only the WPA2/WPA3 mixed mode seems to be broken, e.g.:
In comparison the (correct) output of 'iwinfo radio1 scan' on the same device/configuration, e.g.:
Is it still "allowed" to use the getiwinfo function or should I use another approach to get these kind of information?
BTW: Currently 'iwinfo scan' didn't list "hidden" APs, seems to be a regression IMHO.
Thanks for your support!