wifi: AP requests max TX power in Trigger Frames if no frame received from STA
This commit is contained in:
committed by
Stefano Avallone
parent
5d400141fe
commit
b87dc19b42
@@ -1596,6 +1596,14 @@ HeFrameExchangeManager::SetTargetRssi(CtrlTriggerHeader& trigger) const
|
||||
auto itAidAddr = staList.find(userInfo.GetAid12());
|
||||
NS_ASSERT(itAidAddr != staList.end());
|
||||
auto optRssi = GetMostRecentRssi(itAidAddr->second);
|
||||
if (!optRssi.has_value())
|
||||
{
|
||||
// This might happen after static setup where the AP has not received any
|
||||
// frame from the client yet.
|
||||
userInfo.SetUlTargetRssiMaxTxPower();
|
||||
continue;
|
||||
}
|
||||
|
||||
NS_ASSERT(optRssi);
|
||||
auto rssi = static_cast<int8_t>(*optRssi);
|
||||
rssi = (rssi >= -20)
|
||||
|
||||
Reference in New Issue
Block a user