wifi: Add a SegmentWithoutUnits constructor

...to fix build issues with Apple Xcode 15
This commit is contained in:
Stefano Avallone
2025-09-30 18:17:32 +02:00
parent 5aa252b96b
commit dbcb7bf896

View File

@@ -100,6 +100,22 @@ struct WifiChannelConfig
double width{}; ///< channel width in MHz
WifiPhyBand band{WIFI_PHY_BAND_UNSPECIFIED}; ///< PHY band
uint8_t p20Index{}; ///< primary20 index
/**
* Constructor.
*
* @param n the channel number
* @param w the channel width
* @param b the PHY band
* @param i the primary20 index
*/
SegmentWithoutUnits(uint8_t n, double w, WifiPhyBand b, uint8_t i)
: number(n),
width(w),
band(b),
p20Index(i)
{
}
};
/// a channel segment, as a struct with units for channel width