Hi all,
Some WPA2_PSK protected wifis I encountered in the wild don't show up as such in the listing on /network.
As it turns out, all of those have the flag wpa2_psk_sae_ccmp, which is correctly assigned to APs, but not included in the list of flags making it show as WPA2_PSK protected in the table:
access_point.js:
function isWPAPersonal(flags) {
const supportedPersonalWPAFlags = [
"wpa2_psk_ccmp",
"wpa2_psk_ccmp_tkip",
"wpa_psk_ccmp_tkip"
];
return flags.some(flag => supportedPersonalWPAFlags.includes(flag));
}
However, this flag is included in router.ex when determining the parameters for the password page:
defp get_key_mgmt_from_ap(%{flags: flags}) do
cond do
:wpa2_eap_ccmp in flags ->
:wpa_eap
:wpa2_psk_ccmp in flags ->
:wpa_psk
:wpa2_psk_sae_ccmp in flags ->
:wpa_psk
:wpa2_psk_ccmp_tkip in flags ->
:wpa_psk
:wpa_psk_ccmp_tkip in flags ->
:wpa_psk
true ->
:none
end
end
Is this discrepancy deliberate? If not, I'll prepare a PR.
Thanks!
EDIT: This seems to be the VintageNetWizard version of this issue:
nerves-networking/vintage_net_wifi#61
So maybe it would be good to include all the flags here added recently to VintageNetWifi?
Hi all,
Some WPA2_PSK protected wifis I encountered in the wild don't show up as such in the listing on
/network.As it turns out, all of those have the flag
wpa2_psk_sae_ccmp, which is correctly assigned to APs, but not included in the list of flags making it show as WPA2_PSK protected in the table:access_point.js:However, this flag is included in
router.exwhen determining the parameters for the password page:Is this discrepancy deliberate? If not, I'll prepare a PR.
Thanks!
EDIT: This seems to be the
VintageNetWizardversion of this issue:nerves-networking/vintage_net_wifi#61
So maybe it would be good to include all the flags here added recently to
VintageNetWifi?