Index: net/base/net_util.h |
diff --git a/net/base/net_util.h b/net/base/net_util.h |
index f21c1edb16ce2404f471adf3f1e5d951b1c8d221..4b4057a3d90802d10a338b8fd7b15fbd60c88b62 100644 |
--- a/net/base/net_util.h |
+++ b/net/base/net_util.h |
@@ -516,6 +516,28 @@ typedef std::vector<NetworkInterface> NetworkInterfaceList; |
// Can be called only on a thread that allows IO. |
NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); |
+// General category of the IEEE 802.11 (wifi) physical layer operating mode. |
+enum WifiPhyMode { |
+ // No wifi support or no associated AP. |
+ WIFI_PHY_MODE_NONE, |
+ // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS, |
+ WIFI_PHY_MODE_ANCIENT, |
+ // 802.11a, OFDM-based rates. |
+ WIFI_PHY_MODE_A, |
+ // 802.11b, DSSS or HR DSSS. |
+ WIFI_PHY_MODE_B, |
+ // 802.11g, same rates as 802.11a but compatible with 802.11b. |
+ WIFI_PHY_MODE_G, |
+ // 802.11n, HT rates. |
+ WIFI_PHY_MODE_N, |
+ // Unclassified mode or failure to identify. |
+ WIFI_PHY_MODE_UNKNOWN |
+}; |
+ |
+// Characterize the PHY mode of the currently associated access point. |
+// Currently only available on OS_WIN. |
+NET_EXPORT WifiPhyMode GetWifiPhyMode(); |
+ |
} // namespace net |
#endif // NET_BASE_NET_UTIL_H_ |