@@ -137,7 +137,7 @@ create_mlme_long_ie_descriptor(uint8_t *buf, uint8_t sub_id, int ie_len)
137
137
/* Header IE. ACK/NACK time correction. Used in enhanced ACKs */
138
138
int
139
139
frame80215e_create_ie_header_ack_nack_time_correction (uint8_t * buf , int len ,
140
- struct ieee802154_ies * ies )
140
+ const struct ieee802154_ies * ies )
141
141
{
142
142
int ie_len = 2 ;
143
143
if (len >= 2 + ie_len && ies != NULL ) {
@@ -203,7 +203,8 @@ frame80215e_create_ie_payload_list_termination(uint8_t *buf, int len,
203
203
#if TSCH_WITH_SIXTOP
204
204
/* Payload IE. 6top. Used to nest sub-IEs */
205
205
int
206
- frame80215e_create_ie_ietf (uint8_t * buf , int len , struct ieee802154_ies * ies )
206
+ frame80215e_create_ie_ietf (uint8_t * buf , int len ,
207
+ const struct ieee802154_ies * ies )
207
208
{
208
209
if (len >= 2 && ies != NULL ) {
209
210
create_payload_ie_descriptor (buf ,
@@ -218,7 +219,7 @@ frame80215e_create_ie_ietf(uint8_t *buf, int len, struct ieee802154_ies *ies)
218
219
/* Payload IE. MLME. Used to nest sub-IEs */
219
220
int
220
221
frame80215e_create_ie_mlme (uint8_t * buf , int len ,
221
- struct ieee802154_ies * ies )
222
+ const struct ieee802154_ies * ies )
222
223
{
223
224
int ie_len = 0 ;
224
225
if (len >= 2 + ie_len && ies != NULL ) {
@@ -233,7 +234,7 @@ frame80215e_create_ie_mlme(uint8_t *buf, int len,
233
234
/* MLME sub-IE. TSCH synchronization. Used in EBs: ASN and join priority */
234
235
int
235
236
frame80215e_create_ie_tsch_synchronization (uint8_t * buf , int len ,
236
- struct ieee802154_ies * ies )
237
+ const struct ieee802154_ies * ies )
237
238
{
238
239
int ie_len = 6 ;
239
240
if (len >= 2 + ie_len && ies != NULL ) {
@@ -253,7 +254,7 @@ frame80215e_create_ie_tsch_synchronization(uint8_t *buf, int len,
253
254
/* MLME sub-IE. TSCH slotframe and link. Used in EBs: initial schedule */
254
255
int
255
256
frame80215e_create_ie_tsch_slotframe_and_link (uint8_t * buf , int len ,
256
- struct ieee802154_ies * ies )
257
+ const struct ieee802154_ies * ies )
257
258
{
258
259
if (ies != NULL ) {
259
260
int i ;
@@ -290,7 +291,7 @@ frame80215e_create_ie_tsch_slotframe_and_link(uint8_t *buf, int len,
290
291
/* MLME sub-IE. TSCH timeslot. Used in EBs: timeslot template (timing) */
291
292
int
292
293
frame80215e_create_ie_tsch_timeslot (uint8_t * buf , int len ,
293
- struct ieee802154_ies * ies )
294
+ const struct ieee802154_ies * ies )
294
295
{
295
296
int ie_len ;
296
297
if (ies == NULL ) {
@@ -316,7 +317,7 @@ frame80215e_create_ie_tsch_timeslot(uint8_t *buf, int len,
316
317
/* MLME sub-IE. TSCH channel hopping sequence. Used in EBs: hopping sequence */
317
318
int
318
319
frame80215e_create_ie_tsch_channel_hopping_sequence (uint8_t * buf , int len ,
319
- struct ieee802154_ies * ies )
320
+ const struct ieee802154_ies * ies )
320
321
{
321
322
int ie_len ;
322
323
if (ies == NULL || ies -> ie_hopping_sequence_len > sizeof (ies -> ie_hopping_sequence_list )) {
0 commit comments