Skip to content

Upchannels list parser range check error #141

Description

@beitler

When specifying the upchannels list, the DRs must be in the range 0-7, however the parser accepts the range 0-(DR_CNT-1), i.e. 0-15:

basicstation/src/s2e.c

Lines 904 to 906 in 60fd978

int minDR = (uj_nextSlot(D), uj_intRange(D, 0, DR_CNT-1));
int maxDR = (uj_nextSlot(D), uj_intRange(D, 0, DR_CNT-1));
upch_insert(&upchs, insert, freq, BWNIL, minDR, maxDR);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions