wifi: Restore configuration of CWmin and CWmax for 802.11b

Fix a mistake introduced with 2a1d0091
This commit is contained in:
Stefano Avallone
2022-02-28 17:07:42 +01:00
parent 42617ab353
commit 3e5b603cf3

View File

@@ -674,16 +674,17 @@ WifiMac::ConfigurePhyDependentParameters (void)
SetDsssSupported (true);
cwmin = 31;
cwmax = 1023;
return;
}
if (standard >= WIFI_STANDARD_80211g && band == WIFI_PHY_BAND_2_4GHZ)
else
{
SetErpSupported (true);
}
if (standard >= WIFI_STANDARD_80211g && band == WIFI_PHY_BAND_2_4GHZ)
{
SetErpSupported (true);
}
cwmin = 15;
cwmax = 1023;
cwmin = 15;
cwmax = 1023;
}
ConfigureContentionWindow (cwmin, cwmax);
}