This patch completely reworks session handling; it's almost complete, except that there is no provision for saving the current state of the channel shuffle pattern. (That's not in the LMIC yet, which is why I overlooked it.) This works pretty well in my testing with US915 and TTN V3. It also works with V2. Needs to be tested with EU, because the channel handling is a lot different and more complicated.
This patch completely reworks session handling; it's almost complete, except that there is no provision for saving the current state of the channel shuffle pattern. (That's not in the LMIC yet, which is why I overlooked it.) This works pretty well in my testing with US915 and TTN V3. It also works with V2. Needs to be tested with EU, because the channel handling is a lot different and more complicated.