Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Unified Diff: net/base/net_util.h

Issue 12082090: [net] Add WifiPhyMode to SystemProfile (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: sync again Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698