WiFi to Wi-Fi in docs and messages.

This commit is contained in:
Robin Davies
2024-09-12 19:19:50 -04:00
parent f34ca1f0da
commit f34da1f494
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -53,12 +53,12 @@ static std::vector<OpClassChannels> opClasses = {
* care of removing invalid channels. * care of removing invalid channels.
*/ */
// WiFi 5. // Wi-Fi 5.
// {WifiMode::IEEE80211A, 128, 36, 177, 4, WifiBandwidth::BW80, true}, // {WifiMode::IEEE80211A, 128, 36, 177, 4, WifiBandwidth::BW80, true},
// {WifiMode::IEEE80211A, 129, 36, 177, 4, WifiBandwidth::BW160, true}, // {WifiMode::IEEE80211A, 129, 36, 177, 4, WifiBandwidth::BW160, true},
// {WifiMode::IEEE80211A, 130, 36, 177, 4, WifiBandwidth::BW80P80, true}, // {WifiMode::IEEE80211A, 130, 36, 177, 4, WifiBandwidth::BW80P80, true},
// WiFi 6. // Wi-Fi 6.
// {WifiMode::IEEE80211AX, 131, 1, 233, 4, WifiBandwidth::BW20, true}, // {WifiMode::IEEE80211AX, 131, 1, 233, 4, WifiBandwidth::BW20, true},
// {WifiMode::IEEE80211AX, 132, 1, 233, 8, WifiBandwidth::BW40PLUS, true}, // {WifiMode::IEEE80211AX, 132, 1, 233, 8, WifiBandwidth::BW40PLUS, true},
// {WifiMode::IEEE80211AX, 133, 1, 233, 16, WifiBandwidth::BW80, true}, // {WifiMode::IEEE80211AX, 133, 1, 233, 16, WifiBandwidth::BW80, true},
+1 -1
View File
@@ -504,7 +504,7 @@ uint32_t pipedal::ChannelToWifiFrequency(uint32_t channel)
{ {
return 5500 + (channel - 100) / 5; return 5500 + (channel - 100) / 5;
} }
throw invalid_argument(SS("Invalid WiFi channel: " << channel)); throw invalid_argument(SS("Invalid Wi-Fi channel: " << channel));
} }
bool WifiConfigSettings::ValidateChannel(const std::string &countryCode, const std::string &value) bool WifiConfigSettings::ValidateChannel(const std::string &countryCode, const std::string &value)
@@ -123,7 +123,7 @@ void WifiDirectConfigSettings::ParseArguments(const std::vector<std::string> &ar
if (!WifiConfigSettings::ValidateChannel(this->countryCode_,channel_)) if (!WifiConfigSettings::ValidateChannel(this->countryCode_,channel_))
{ {
throw invalid_argument(SS("Invalid WiFi channel: " << channel_)); throw invalid_argument(SS("Invalid Wi-Fi channel: " << channel_));
} }
} }
+1 -1
View File
@@ -1105,7 +1105,7 @@ void Install(const fs::path &programPrefix, const std::string endpointAddress)
EnableService(); EnableService();
// Restart WiFi Direct if neccessary. // Restart Wi-Fi Direct if neccessary.
OnWifiReinstall(); OnWifiReinstall();
} }
catch (const std::exception &e) catch (const std::exception &e)
+1 -1
View File
@@ -107,7 +107,7 @@ PiPedalVersion::PiPedalVersion(PiPedalModel&model)
std::string p2pAddr = GetInterfaceIpv4Address("p2p-wlan0-0"); std::string p2pAddr = GetInterfaceIpv4Address("p2p-wlan0-0");
if (p2pAddr.length() != 0) if (p2pAddr.length() != 0)
{ {
this->webAddresses_.push_back(MakeWebAddress(p2pAddr,port) + " (WiFi Direct)"); this->webAddresses_.push_back(MakeWebAddress(p2pAddr,port) + " (Wi-Fi Direct)");
} }
+1 -1
View File
@@ -1,4 +1,4 @@
# WiFi regdomain 2-letter country code. # Wi-Fi regdomain 2-letter country code.
# see: http://www.davros.org/misc/iso3166.txt # see: http://www.davros.org/misc/iso3166.txt
country_code=${COUNTRY_CODE} country_code=${COUNTRY_CODE}