From 05e481b4f2c28e7b3493ec97f8ce3ad40923de93 Mon Sep 17 00:00:00 2001 From: William San Filippo Date: Thu, 2 Nov 2017 14:04:52 -0700 Subject: [PATCH] net/lora: Fix MAC command issues There are two basic issues fixed with this commit: 1) If the server sends MAC commands "constantly" the code would not send any data until the MAC commands stopped being sent. Now, if we cannot send any MAC commands because the application data is too large, we will send a MAC commands, at most, every other frame. 2) The code will now attempt to add as many MAC commands as it can to each transmission. Prior code would either attempt to add the entire MAC command buffer or do nothing. X-Original-Commit: 6f78d462d7b05346dcc2ddb4b94d0b8de31611e7