@@ -164,10 +164,6 @@ typedef struct sLoRaMacNvmCtx
164164 * Current channel index
165165 */
166166 uint8_t LastTxChannel ;
167- /*
168- * Holds the current rx window slot
169- */
170- bool RepeaterSupport ;
171167 /*
172168 * Buffer containing the MAC layer commands
173169 */
@@ -1071,12 +1067,6 @@ static void ProcessRadioRxDone( void )
10711067 getPhy .UplinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
10721068 getPhy .Datarate = MacCtx .McpsIndication .RxDatarate ;
10731069 getPhy .Attribute = PHY_MAX_PAYLOAD ;
1074-
1075- // Get the maximum payload length
1076- if ( MacCtx .NvmCtx -> RepeaterSupport == true )
1077- {
1078- getPhy .Attribute = PHY_MAX_PAYLOAD_REPEATER ;
1079- }
10801070 phyParam = RegionGetPhyParam ( MacCtx .NvmCtx -> Region , & getPhy );
10811071 if ( MAX ( 0 , ( int16_t )( ( int16_t ) size - ( int16_t ) LORA_MAC_FRMPAYLOAD_OVERHEAD ) ) > ( int16_t )phyParam .Value )
10821072 {
@@ -1720,7 +1710,6 @@ static void OnRxWindow1TimerEvent( void* context )
17201710 MacCtx .RxWindow1Config .Channel = MacCtx .Channel ;
17211711 MacCtx .RxWindow1Config .DrOffset = MacCtx .NvmCtx -> MacParams .Rx1DrOffset ;
17221712 MacCtx .RxWindow1Config .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
1723- MacCtx .RxWindow1Config .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
17241713 MacCtx .RxWindow1Config .RxContinuous = false;
17251714 MacCtx .RxWindow1Config .RxSlot = RX_SLOT_WIN_1 ;
17261715
@@ -1738,7 +1727,6 @@ static void OnRxWindow2TimerEvent( void* context )
17381727 MacCtx .RxWindow2Config .Channel = MacCtx .Channel ;
17391728 MacCtx .RxWindow2Config .Frequency = MacCtx .NvmCtx -> MacParams .Rx2Channel .Frequency ;
17401729 MacCtx .RxWindow2Config .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
1741- MacCtx .RxWindow2Config .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
17421730 MacCtx .RxWindow2Config .RxContinuous = false;
17431731 MacCtx .RxWindow2Config .RxSlot = RX_SLOT_WIN_2 ;
17441732
@@ -1851,7 +1839,6 @@ static LoRaMacStatus_t SwitchClass( DeviceClass_t deviceClass )
18511839 MacCtx .RxWindowCConfig .Channel = MacCtx .Channel ;
18521840 MacCtx .RxWindowCConfig .Frequency = MacCtx .NvmCtx -> MacParams .RxCChannel .Frequency ;
18531841 MacCtx .RxWindowCConfig .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
1854- MacCtx .RxWindowCConfig .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
18551842 MacCtx .RxWindowCConfig .RxSlot = RX_SLOT_WIN_CLASS_C_MULTICAST ;
18561843 MacCtx .RxWindowCConfig .RxContinuous = true;
18571844 break ;
@@ -1905,12 +1892,6 @@ static uint8_t GetMaxAppPayloadWithoutFOptsLength( int8_t datarate )
19051892 getPhy .UplinkDwellTime = MacCtx .NvmCtx -> MacParams .UplinkDwellTime ;
19061893 getPhy .Datarate = datarate ;
19071894 getPhy .Attribute = PHY_MAX_PAYLOAD ;
1908-
1909- // Get the maximum payload length
1910- if ( MacCtx .NvmCtx -> RepeaterSupport == true )
1911- {
1912- getPhy .Attribute = PHY_MAX_PAYLOAD_REPEATER ;
1913- }
19141895 phyParam = RegionGetPhyParam ( MacCtx .NvmCtx -> Region , & getPhy );
19151896
19161897 return phyParam .Value ;
@@ -2629,7 +2610,6 @@ static void ResetMacParameters( void )
26292610 MacCtx .RxWindow2Config .Channel = MacCtx .Channel ;
26302611 MacCtx .RxWindow2Config .Frequency = MacCtx .NvmCtx -> MacParams .Rx2Channel .Frequency ;
26312612 MacCtx .RxWindow2Config .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
2632- MacCtx .RxWindow2Config .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
26332613 MacCtx .RxWindow2Config .RxContinuous = false;
26342614 MacCtx .RxWindow2Config .RxSlot = RX_SLOT_WIN_2 ;
26352615
@@ -2909,7 +2889,6 @@ LoRaMacStatus_t RestoreCtxs( LoRaMacCtxs_t* contexts )
29092889 MacCtx .RxWindowCConfig .Channel = MacCtx .Channel ;
29102890 MacCtx .RxWindowCConfig .Frequency = MacCtx .NvmCtx -> MacParams .RxCChannel .Frequency ;
29112891 MacCtx .RxWindowCConfig .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
2912- MacCtx .RxWindowCConfig .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
29132892 MacCtx .RxWindowCConfig .RxContinuous = true;
29142893 MacCtx .RxWindowCConfig .RxSlot = RX_SLOT_WIN_CLASS_C ;
29152894
@@ -3185,7 +3164,6 @@ LoRaMacStatus_t LoRaMacInitialization( LoRaMacPrimitives_t* primitives, LoRaMacC
31853164 MacCtx .AckTimeoutRetries = 1 ;
31863165 MacCtx .NvmCtx -> Region = region ;
31873166 MacCtx .NvmCtx -> DeviceClass = CLASS_A ;
3188- MacCtx .NvmCtx -> RepeaterSupport = false;
31893167
31903168 // Setup version
31913169 MacCtx .NvmCtx -> Version .Value = LORAMAC_VERSION ;
@@ -3554,11 +3532,6 @@ LoRaMacStatus_t LoRaMacMibGetRequestConfirm( MibRequestConfirm_t* mibGet )
35543532 mibGet -> Param .EnablePublicNetwork = MacCtx .NvmCtx -> PublicNetwork ;
35553533 break ;
35563534 }
3557- case MIB_REPEATER_SUPPORT :
3558- {
3559- mibGet -> Param .EnableRepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
3560- break ;
3561- }
35623535 case MIB_CHANNELS :
35633536 {
35643537 getPhy .Attribute = PHY_CHANNELS ;
@@ -4094,11 +4067,6 @@ LoRaMacStatus_t LoRaMacMibSetRequestConfirm( MibRequestConfirm_t* mibSet )
40944067 Radio .SetPublicNetwork ( MacCtx .NvmCtx -> PublicNetwork );
40954068 break ;
40964069 }
4097- case MIB_REPEATER_SUPPORT :
4098- {
4099- MacCtx .NvmCtx -> RepeaterSupport = mibSet -> Param .EnableRepeaterSupport ;
4100- break ;
4101- }
41024070 case MIB_RX2_CHANNEL :
41034071 {
41044072 verify .DatarateParams .Datarate = mibSet -> Param .Rx2Channel .Datarate ;
0 commit comments