File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ func HandleLinkADRAns(
330
330
// with a LinkADRAns indicating which command elements were accepted and which were
331
331
// rejected. This behavior differs from when the uplink ADR bit is set, in which case the end-
332
332
// device accepts or rejects the entire command.
333
- if macspec .UseADRBit (macState .LorawanVersion ) {
333
+ if macspec .LinkADRReqRejected (macState .LorawanVersion ) {
334
334
rejected = ! pld .ChannelMaskAck ||
335
335
(adrEnabled && ! pld .DataRateIndexAck ) ||
336
336
(adrEnabled && ! pld .TxPowerIndexAck )
Original file line number Diff line number Diff line change @@ -238,8 +238,9 @@ func ValidateUplinkPayloadSize(v ttnpb.MACVersion) bool {
238
238
return compareMACVersion (v , ttnpb .MACVersion_MAC_V1_1 ) >= 0
239
239
}
240
240
241
- // UseADRBit reports whether v uses the ADR bit in the FCtrl field.
242
- func UseADRBit (v ttnpb.MACVersion ) bool {
241
+ // LinkADRReqRejected reports whether v uses the ADR bit in the FCtrl field
242
+ // to modify which ACK bits needs to check in the LinkADRAns.
243
+ func LinkADRReqRejected (v ttnpb.MACVersion ) bool {
243
244
return compareMACVersion (v , ttnpb .MACVersion_MAC_V1_0_3 ) >= 0 &&
244
245
compareMACVersion (v , ttnpb .MACVersion_MAC_V1_0_4 ) <= 0
245
246
}
You can’t perform that action at this time.
0 commit comments