OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_NET_UTIL_H_ | 5 #ifndef NET_BASE_NET_UTIL_H_ |
6 #define NET_BASE_NET_UTIL_H_ | 6 #define NET_BASE_NET_UTIL_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 }; | 509 }; |
510 | 510 |
511 typedef std::vector<NetworkInterface> NetworkInterfaceList; | 511 typedef std::vector<NetworkInterface> NetworkInterfaceList; |
512 | 512 |
513 // Returns list of network interfaces except loopback interface. If an | 513 // Returns list of network interfaces except loopback interface. If an |
514 // interface has more than one address, a separate entry is added to | 514 // interface has more than one address, a separate entry is added to |
515 // the list for each address. | 515 // the list for each address. |
516 // Can be called only on a thread that allows IO. | 516 // Can be called only on a thread that allows IO. |
517 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); | 517 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); |
518 | 518 |
| 519 // General category of the IEEE 802.11 (wifi) physical layer operating mode. |
| 520 enum WifiPHYLayerProtocol { |
| 521 // No wifi support or no associated AP. |
| 522 WIFI_PHY_LAYER_PROTOCOL_NONE, |
| 523 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS, |
| 524 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, |
| 525 // 802.11a, OFDM-based rates. |
| 526 WIFI_PHY_LAYER_PROTOCOL_A, |
| 527 // 802.11b, DSSS or HR DSSS. |
| 528 WIFI_PHY_LAYER_PROTOCOL_B, |
| 529 // 802.11g, same rates as 802.11a but compatible with 802.11b. |
| 530 WIFI_PHY_LAYER_PROTOCOL_G, |
| 531 // 802.11n, HT rates. |
| 532 WIFI_PHY_LAYER_PROTOCOL_N, |
| 533 // Unclassified mode or failure to identify. |
| 534 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN |
| 535 }; |
| 536 |
| 537 // Characterize the PHY mode of the currently associated access point. |
| 538 // Currently only available on OS_WIN. |
| 539 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); |
| 540 |
519 } // namespace net | 541 } // namespace net |
520 | 542 |
521 #endif // NET_BASE_NET_UTIL_H_ | 543 #endif // NET_BASE_NET_UTIL_H_ |
OLD | NEW |