mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Merge branch 'master' into release to roll forward to cl/341150519.
This commit is contained in:
@@ -35,6 +35,7 @@ using WifiAwareCredentials = UpgradePathInfo::WifiAwareCredentials;
|
||||
using WifiDirectCredentials = UpgradePathInfo::WifiDirectCredentials;
|
||||
using BluetoothCredentials = UpgradePathInfo::BluetoothCredentials;
|
||||
using WebRtcCredentials = UpgradePathInfo::WebRtcCredentials;
|
||||
using Medium = location::nearby::connections::Medium;
|
||||
|
||||
constexpr absl::string_view kIpv4PatternString{
|
||||
"^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
|
||||
@@ -239,7 +240,7 @@ Exception EnsureValidBandwidthUpgradePathAvailableFrame(
|
||||
const UpgradePathInfo& upgrade_path_info) {
|
||||
if (!upgrade_path_info.has_medium())
|
||||
return {Exception::kInvalidProtocolBuffer};
|
||||
switch (upgrade_path_info.medium()) {
|
||||
switch (static_cast<Medium>(upgrade_path_info.medium())) {
|
||||
case Medium::WIFI_HOTSPOT:
|
||||
if (upgrade_path_info.has_wifi_hotspot_credentials()) {
|
||||
return EnsureValidBandwidthUpgradeWifiHotspotPathAvailableFrame(
|
||||
|
||||
@@ -110,7 +110,7 @@ WifiLanBwuHandler::CreateUpgradedEndpointChannel(
|
||||
}
|
||||
|
||||
const std::string& ip_address = wifi_lan_socket.ip_address();
|
||||
int32 port = wifi_lan_socket.wifi_port();
|
||||
std::int32_t port = wifi_lan_socket.wifi_port();
|
||||
|
||||
WifiLanService wifi_lan_service =
|
||||
wifi_lan_medium_.GetRemoteWifiLanService(ip_address, port);
|
||||
|
||||
Reference in New Issue
Block a user