From dbcb7bf896edb6347fbd945b3db4c174587e558c Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Tue, 30 Sep 2025 18:17:32 +0200 Subject: [PATCH] wifi: Add a SegmentWithoutUnits constructor ...to fix build issues with Apple Xcode 15 --- src/wifi/model/wifi-types.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/wifi/model/wifi-types.h b/src/wifi/model/wifi-types.h index e8eac4e0a..4ab37659d 100644 --- a/src/wifi/model/wifi-types.h +++ b/src/wifi/model/wifi-types.h @@ -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