networkInterfaceInfo.Bandwidth始终为52 Mbit [英] networkInterfaceInfo.Bandwidth always 52 Mbit
本文介绍了networkInterfaceInfo.Bandwidth始终为52 Mbit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我尝试获得当前WiFi连接的速度,我将始终获得52 Mbit.
if i try to get the speed of the current WiFi connection i get always 52 Mbit.
这是我使用的代码:
Dim networkInterfaceList As New NetworkInterfaceList()
For Each networkInterfaceInfo As NetworkInterfaceInfo In networkInterfaceList
If networkInterfaceInfo.InterfaceType = NetworkInterfaceType.Wireless80211 Then
If networkInterfaceInfo.InterfaceState = ConnectState.Connected Then
var_WIFI_Name = networkInterfaceInfo.InterfaceName.ToString
var_WIFI_Speed = networkInterfaceInfo.Bandwidth
End If
Exit For
End If
Next
推荐答案
带宽返回值是网络接口的可用速度,而不是接口上当前可用的带宽.
The value Bandwidth returns is the capable speed of the network interface, not the current bandwidth that may be available on the interface.
我敢打赌,此表中的值可以是任何值: http://en.wikipedia.org/wiki/WiFi_N#Data_rates
I would bet the value could be any from this table: http://en.wikipedia.org/wiki/WiFi_N#Data_rates
这篇关于networkInterfaceInfo.Bandwidth始终为52 Mbit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文