fix indent and simplify auth request packing

master
Andre Puschmann 7 years ago
parent 0c94974da6
commit a30ad8952c

@ -1037,11 +1037,12 @@ LIBLTE_ERROR_ENUM liblte_mme_pack_authentication_response_parameter_ie(uint8 *r
ie_ptr != NULL) ie_ptr != NULL)
{ {
(*ie_ptr)[0] = res_len; (*ie_ptr)[0] = res_len;
*ie_ptr += 1;
for(i=0; i<res_len; i++) for(i=0; i<res_len; i++)
{ {
(*ie_ptr)[i+1] = res[i]; (*ie_ptr)[i] = res[i];
} }
*ie_ptr += res_len+1; *ie_ptr += res_len;
err = LIBLTE_SUCCESS; err = LIBLTE_SUCCESS;
} }

@ -26,7 +26,7 @@
#include <iostream> #include <iostream>
#include <assert.h> #include <assert.h>
#include <srsue/hdr/upper/usim_base.h> #include "srsue/hdr/upper/usim_base.h"
#include "srsue/hdr/upper/usim.h" #include "srsue/hdr/upper/usim.h"
#include "srsue/hdr/upper/nas.h" #include "srsue/hdr/upper/nas.h"
#include "srslte/upper/rlc.h" #include "srslte/upper/rlc.h"

Loading…
Cancel
Save