emoacht / Wifinian

A Windows desktop tool to enable user to actively control Wi-Fi connections
https://www.microsoft.com/store/apps/9pngfqps4flh
MIT License
244 stars 29 forks source link

Status is not shown correctly with WPA3 #7

Closed Cai0407 closed 4 years ago

Cai0407 commented 4 years ago

Windows 10 Pro 64bit (2004) with Intel AX200 (Wi-Fi 6 and WPA3 are available).

See the screenshot below. 2020-09-27

  1. "MAGI_X" is Wi-Fi 6, WPA3-Personal [AES], 5GHz. 100ch. Wifinian says its status is "None [None]" and its signal is 0%, "Auto Connect" and "Auto Switch" are unavailable.

  2. "MAGI" is Wi-Fi 6, WPA3/WPA2-Personal mix-mode [AES], 5GHz. 100ch. Wifinian says its status is "WPA2-Personal [AES], 5GHz. 100".

In both cases, WPA3 is ignored.

emoacht commented 4 years ago

@Cai0407 Thank you for reporting. I need authentication type strings for them. Could you try attached version and post the message? [Removed]

Cai0407 commented 4 years ago

2020-09-27 (3) MAGI_X (WPA3-Personal only), Authentication: WPA3SAE MAGI (WPA3/WPA2-Personal mix mode, Wi-Fi profile saved as WPA3-Personal), Authentication: WPA3SAE MAGI_G (WPA2-Personal only), Authentication: WPA2PSK MAGI_GUEST (WPA2/WPA-Personal mix mode, Wi-Fi profile saved as WPA2-Personal), Authentication: WPA2PSK

2020-09-27 (1) MAGI (WPA3/WPA2-Personal mix mode, Wi-Fi profile saved as WPA2-Personal), Authentication: WPA2PSK

I cannot test WPA3-Enterprise...

emoacht commented 4 years ago

Thank you for your quick response. According to this document, Wpa3 and Wpa3Sae indicate WPA3 Enterprise and WPA Personal respectively. Not sure about mixed mode. https://docs.microsoft.com/ja-jp/uwp/api/windows.networking.connectivity.networkauthenticationtype

Cai0407 commented 4 years ago

In mixed mode case, it seems to be based on the setting of client side.

In my case AP: WPA3/WPA2-Personal mixed, client: WPA3-Personal -> result: WPA3SAE AP: WPA3/WPA2-Personal mixed, client: WPA2-Personal -> result: WPA2PSK AP: WPA2/WPA-Personal mixed, client: WPA2-Personal -> result: WPA2PSK (AP: WPA2/WPA-Personal mixed, client: WPA-Personal -> result: WPAPSK) maybe?

emoacht commented 4 years ago

Understood. It is exactly a wireless profile indicates. It does not necessarily rely on access point's settings.

emoacht commented 4 years ago

The modification is included in Ver 2.4.0.

Cai0407 commented 4 years ago

2020-09-29 Wpa3 indication is fine wIth version 2.4.0. However, I realize another issue. Signal strength of WPA3 SSID is always "0%" and I cannot change connection from others to WPA3 SSID by clicking signal indicator.

emoacht commented 4 years ago

I see. Then, could you try this console app and update the result? ManagedNativeWifi.Simple.zip

Cai0407 commented 4 years ago

MAGI_X: WPA3-Personal, client: WPA3-Personal MAGI: WPA3/WPA2-Personal mixed, client: WPA3-Personal MAGI_G: WPA2-Personal, client: WPA2-Personal MAGI_GUEST: WPA2/WPA-Personal mixed, client: WPA2-Personal

PS D:\Users\******\Desktop> ManagedNativeWifi.Simple.exe
[Available Network SSIDs]
Interface count: 1
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_X, Signal: 92
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI, Signal: 92
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_G, Signal: 98
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_GUEST, Signal: 98
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_GUEST, Signal: 98
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_G, Signal: 98
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI, Signal: 92
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_X, Signal: 92
[Connected Network SSIDs]
Interface count: 1
Interface: Intel(R) Wi-Fi 6 AX200 160MHz, SSID: MAGI_X, BSSID: **:**:**:**:**:**, Signal: 92

Signals seem to shown correctly even with WPA3 SSIDs.

emoacht commented 4 years ago

Thank you for the result. Could you try another console app as well? This file is used for production and uses different functions. ManagedNativeWifi.Demo.zip

Cai0407 commented 4 years ago
PS D:\Users\******\Desktop\ManagedNativeWifi.Demo> ManagedNativeWifi.Demo.exe
===== Usable Interfaces =====
Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
===== Usable Interface Connections =====
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 Connection: Profile
 RadioOn: True
 Connected: True
 Profile: MAGI_X}
===== Available Network SSIDs =====
SSID: MAGI_X
SSID: MAGI
SSID: MAGI_G
SSID: MAGI_GUEST
SSID: MAGI
SSID: MAGI_GUEST
SSID: MAGI_G
SSID: MAGI_X
===== Connected Network SSIDs =====
SSID: MAGI_X
===== Available Networks =====
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: Infrastructure
 SignalQuality: 96
 Security: True}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: Infrastructure
 SignalQuality: 96
 Security: True}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: Infrastructure
 SignalQuality: 96
 Security: True}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: Infrastructure
 SignalQuality: 96
 Security: True}
===== Available Network Groups =====
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BssNetworks: 1
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BssNetworks: 1
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BssNetworks: 1
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BssNetworks: 1
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
===== BSS Networks =====
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI
 BSS: Infrastructure
 BSSID: **:**:**:**:**:**
 SignalStrength: -44
 LinkQuality: 91
 Frequency: 5500000 KHz
 Band: 5 GHz
 Channel: 100}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: Infrastructure
 BSSID: **:**:**:**:**:**
 SignalStrength: -36
 LinkQuality: 96
 Frequency: 2412000 KHz
 Band: 2.4 GHz
 Channel: 1}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: Infrastructure
 BSSID: **:**:**:**:**:**
 SignalStrength: -36
 LinkQuality: 96
 Frequency: 2412000 KHz
 Band: 2.4 GHz
 Channel: 1}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_X
 BSS: Infrastructure
 BSSID: **:**:**:**:**:**
 SignalStrength: -43
 LinkQuality: 92
 Frequency: 5500000 KHz
 Band: 5 GHz
 Channel: 100}
===== Network Profile Names =====
Name: MAGI_X
Name: MAGI
Name: MAGI_G
Name: MAGI_GUEST
===== Network Profiles =====
{Name: MAGI_X
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_X
 BSS: Infrastructure
 Authentication: WPA3_Personal
 Encryption: AES
 AutoConnect: True
 AutoSwitch: False
 Position: 0}
{Name: MAGI
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI
 BSS: Infrastructure
 Authentication: WPA3_Personal
 Encryption: AES
 AutoConnect: True
 AutoSwitch: True
 Position: 1}
{Name: MAGI_G
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: Infrastructure
 Authentication: WPA2_Personal
 Encryption: AES
 AutoConnect: True
 AutoSwitch: True
 Position: 2}
{Name: MAGI_GUEST
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: Infrastructure
 Authentication: WPA2_Personal
 Encryption: AES
 AutoConnect: True
 AutoSwitch: True
 Position: 3}
===== Network Profile Radios =====
{Name: MAGI_X
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_X
 RadioOn: True
 Connected: True
 SignalQuality: 0
 LinkQuality: 0
 Band: 0 GHz
 Channel: 0}
{Name: MAGI
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI
 RadioOn: True
 Connected: False
 SignalQuality: 0
 LinkQuality: 0
 Band: 0 GHz
 Channel: 0}
{Name: MAGI_G
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 RadioOn: True
 Connected: False
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
{Name: MAGI_GUEST
 Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 RadioOn: True
 Connected: False
 SignalQuality: 96
 LinkQuality: 96
 Band: 2.4 GHz
 Channel: 1}
emoacht commented 4 years ago

Okay, WPA3 access points are not shown in available networks. It can be caused by that their authentication or cipher algorithm is unknown. Could you try another console app again? ManagedNativeWifi.Demo.zip

Cai0407 commented 4 years ago
PS D:\Users\Kosuke\Desktop\ManagedNativeWifi.Demo-1> .\ManagedNativeWifi.Demo.exe
===== Raw Available Networks =====
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_X
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 91
 Security: True
 AuthenticationAlgorithm: 9
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 91
 Security: True
 AuthenticationAlgorithm: 9
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 98
 Security: True
 AuthenticationAlgorithm: DOT11_AUTH_ALGO_RSNA_PSK
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 98
 Security: True
 AuthenticationAlgorithm: DOT11_AUTH_ALGO_RSNA_PSK
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 91
 Security: True
 AuthenticationAlgorithm: 9
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_GUEST
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 98
 Security: True
 AuthenticationAlgorithm: DOT11_AUTH_ALGO_RSNA_PSK
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_G
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 98
 Security: True
 AuthenticationAlgorithm: DOT11_AUTH_ALGO_RSNA_PSK
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
{Interface: Intel(R) Wi-Fi 6 AX200 160MHz (7fa16858-e843-4063-8d3e-81ff34a0ec4a)
 SSID: MAGI_X
 BSS: dot11_BSS_type_infrastructure
 SignalQuality: 92
 Security: True
 AuthenticationAlgorithm: 9
 CipherAlgorithm: DOT11_CIPHER_ALGO_CCMP}
emoacht commented 4 years ago

Thank you for the result again. It clearly indicates that the value of AuthenticationAlgorithm is unknown one (9). It is a big clue. After searching around, I found that wlantypes.h of the latest Windows SDK (10.0.19041.0) includes updated DOT11_AUTH_ALGORITHM enumeration and in that enumeration, 9 corresponds to DOT11_AUTH_ALGO_WPA3_SAE. I think it is I am looking for.

emoacht commented 4 years ago

Ver 2.4.1 with updated ManagedNativeWifi is published in the Store.

Cai0407 commented 4 years ago

2020-09-30 (1) All works fine. Thank you for quick fixing!