wifi: (fixes #1095) Fix reception of WIFI_MOD_CLASS_HR_DSSS

This commit is contained in:
Tom Henderson
2024-06-20 18:38:08 -07:00
parent 235588143c
commit da9fcebe05
2 changed files with 8 additions and 1 deletions

View File

@@ -218,7 +218,10 @@ GetModulationClassForStandard(WifiStandard standard)
modulationClass = WIFI_MOD_CLASS_OFDM;
break;
case WIFI_STANDARD_80211b:
modulationClass = WIFI_MOD_CLASS_DSSS;
// Although two modulation classes are supported in 802.11b, return the
// numerically greater one defined in the WifiModulationClass enum.
// See issue #1095 for more explanation.
modulationClass = WIFI_MOD_CLASS_HR_DSSS;
break;
case WIFI_STANDARD_80211g:
modulationClass = WIFI_MOD_CLASS_ERP_OFDM;

View File

@@ -666,6 +666,10 @@ bool IsUlMu(WifiPreamble preamble);
/**
* Return the modulation class corresponding to a given standard.
*
* In the case of WIFI_STANDARD_80211b, two modulation classes are supported
* (WIFI_MOD_CLASS_DSSS and WIFI_MOD_CLASS_HR_DSSS); this method will return
* the latter.
*
* \param standard the standard
* \return the modulation class corresponding to the standard
*/