Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/linux/net/wifi/core/AccessPointControllerLinux.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,16 @@ AccessPointControllerLinux::SetMldAp(bool mldAp) noexcept
return status;
}

// Set the hostapd "ieee80211be" property.
try {
propertyValueToSet = mldAp ? Wpa::ProtocolHostapd::PropertyEnabled : Wpa::ProtocolHostapd::PropertyDisabled;
m_hostapd.SetProperty(Wpa::ProtocolHostapd::PropertyNameIeee80211BE, propertyValueToSet, EnforceConfigurationChange::Now);
} catch (const Wpa::HostapdException& ex) {
status.Code = AccessPointOperationStatusCode::InternalError;
status.Details = std::format("failed to set hostapd property '{}' to '{}' - {}", Wpa::ProtocolHostapd::PropertyNameIeee80211BE, propertyValueToSet, ex.what());
return status;
}

status.Code = AccessPointOperationStatusCode::Succeeded;
return status;
}
Expand Down
2 changes: 2 additions & 0 deletions src/linux/net/wifi/wpa-controller/WpaCommandStatus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ WpaStatusResponseParser::ParsePayload()
ParseInt(value, status.Ieee80211ax);
} else if (key == ProtocolHostapd::ResponseStatusPropertyKeyDisableAX) {
ParseInt(value, status.Disable11ax);
} else if (key == ProtocolHostapd::ResponseStatusPropertyKeyIeee80211BE) {
ParseInt(value, status.Ieee80211be);
} else if (key == ProtocolHostapd::PropertyNameBss) {
enforceRequiredBssInfoSize(index.value() + 1);
status.Bss[index.value()].Interface = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ struct HostapdStatus
int Disable11n{ 0 };
int Disable11ac{ 0 };
int Disable11ax{ 0 };
int Ieee80211be{ 0 };
// int Ieee80211be{ 0 };
// uint16_t BeaconInterval{ 0 };
// int DtimPeriod{ 0 };
Expand Down Expand Up @@ -635,6 +636,7 @@ struct ProtocolHostapd :
static constexpr auto PropertyNameDisable11AC = "disable_11ac";
static constexpr auto PropertyNameIeee80211AX = "ieee80211ax";
static constexpr auto PropertyNameDisable11AX = "disable_11ax";
static constexpr auto PropertyNameIeee80211BE = "ieee80211be";
static constexpr auto PropertyNameWmmEnabled = "wmm_enabled";
static constexpr auto PropertyNameState = "state";

Expand Down Expand Up @@ -702,6 +704,7 @@ struct ProtocolHostapd :
static constexpr auto ResponseStatusPropertyKeyDisableAC = PropertyNameDisable11AC;
static constexpr auto ResponseStatusPropertyKeyIeee80211AX = PropertyNameIeee80211AX;
static constexpr auto ResponseStatusPropertyKeyDisableAX = PropertyNameDisable11AX;
static constexpr auto ResponseStatusPropertyKeyIeee80211BE = PropertyNameIeee80211BE;

// Response properties for the "GET_CONFIG" command.
// Note: all properties must be terminated with the key-value delimeter (=).
Expand Down
Loading