Skip to content
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

Bad detection of WLAN adapter #2

Open
petrmatula opened this issue Apr 25, 2021 · 3 comments
Open

Bad detection of WLAN adapter #2

petrmatula opened this issue Apr 25, 2021 · 3 comments

Comments

@petrmatula
Copy link

petrmatula commented Apr 25, 2021

Script probably is not able detect my WLAN adapter.

20210425-15h05m51s.log

adapter.txt

@Indigo744
Copy link
Owner

Hello!

It's weird, it does seem to be able to find a WLAN adapter:

 > Found interface Mobilní síť 17 (36) connected on SSID pm_5GHz

But then, it cannot retrieve the interface using its index 36:

Get-NetIPInterface : No MSFT_NetIPInterface objects found with property 'InterfaceIndex' equal to '36'.  Verify the value of the property and retry.

What is shown if you perform a Get-NetIPConfiguration in a Powershell admin console?

Also, Get-NetAdapter shows a lot of "Mobilní síť" interface. What are exactly those interfaces?
Which one would you want to actually use?

@petrmatula
Copy link
Author

What is shown if you perform a Get-NetIPConfiguration in a Powershell admin console?

PS C:\WINDOWS\system32> Get-NetIPConfiguration

InterfaceAlias : Mobilní síť 16
InterfaceIndex : 34
InterfaceDescription : Fibocom L850-GL
NetAdapter.Status : Disconnected

InterfaceAlias : Wi-Fi
InterfaceIndex : 11
InterfaceDescription : Intel(R) Wi-Fi 6 AX201 160MHz
NetAdapter.Status : Disconnected

InterfaceAlias : Ethernet 2
InterfaceIndex : 7
InterfaceDescription : Intel(R) Ethernet Connection (10) I219-V
NetAdapter.Status : Disconnected

Also, Get-NetAdapter shows a lot of "Mobilní síť" interface. What are exactly those interfaces?

All "Mobilní síť" are connected with LTE modem.

Which one would you want to actually use?

The right interface should be "Wi-Fi Intel(R) Wi-Fi 6 AX201 160MHz 11"

@petrmatula
Copy link
Author

petrmatula commented Oct 3, 2021

I had to make a workaraund.
Ichanged
$currentItfAlias = $wlanAdapter.InterfaceAlias
$currentItfIndex = $wlanAdapter.InterfaceIndex
to
$currentItfAlias = "Wi-Fi"
$currentItfIndex = "11"

in wlanprofilemanager-ps.ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants