@@ -58,8 +58,8 @@ void *smp_alloc_rsp(const void *req, void *arg)
58
58
return NULL ;
59
59
}
60
60
61
- if (smpt -> zst_ud_copy ) {
62
- smpt -> zst_ud_copy (rsp_nb , req_nb );
61
+ if (smpt -> ud_copy ) {
62
+ smpt -> ud_copy (rsp_nb , req_nb );
63
63
} else {
64
64
memcpy (net_buf_user_data (rsp_nb ),
65
65
net_buf_user_data ((void * )req_nb ),
@@ -77,8 +77,8 @@ void smp_free_buf(void *buf, void *arg)
77
77
return ;
78
78
}
79
79
80
- if (smpt -> zst_ud_free ) {
81
- smpt -> zst_ud_free (net_buf_user_data ((struct net_buf * )buf ));
80
+ if (smpt -> ud_free ) {
81
+ smpt -> ud_free (net_buf_user_data ((struct net_buf * )buf ));
82
82
}
83
83
84
84
mcumgr_buf_free (buf );
@@ -116,7 +116,7 @@ smp_handle_reqs(struct k_work *work)
116
116
117
117
smpt = (void * )work ;
118
118
119
- while ((nb = net_buf_get (& smpt -> zst_fifo , K_NO_WAIT )) != NULL ) {
119
+ while ((nb = net_buf_get (& smpt -> fifo , K_NO_WAIT )) != NULL ) {
120
120
smp_process_packet (smpt , nb );
121
121
}
122
122
}
@@ -129,18 +129,18 @@ smp_transport_init(struct smp_transport *smpt,
129
129
smp_transport_ud_free_fn ud_free_func )
130
130
{
131
131
* smpt = (struct smp_transport ) {
132
- .zst_output = output_func ,
133
- .zst_get_mtu = get_mtu_func ,
134
- .zst_ud_copy = ud_copy_func ,
135
- .zst_ud_free = ud_free_func ,
132
+ .output = output_func ,
133
+ .get_mtu = get_mtu_func ,
134
+ .ud_copy = ud_copy_func ,
135
+ .ud_free = ud_free_func ,
136
136
};
137
137
138
138
#ifdef CONFIG_MCUMGR_SMP_REASSEMBLY
139
139
smp_reassembly_init (smpt );
140
140
#endif
141
141
142
- k_work_init (& smpt -> zst_work , smp_handle_reqs );
143
- k_fifo_init (& smpt -> zst_fifo );
142
+ k_work_init (& smpt -> work , smp_handle_reqs );
143
+ k_fifo_init (& smpt -> fifo );
144
144
}
145
145
146
146
/**
@@ -155,8 +155,8 @@ smp_transport_init(struct smp_transport *smpt,
155
155
WEAK void
156
156
smp_rx_req (struct smp_transport * smpt , struct net_buf * nb )
157
157
{
158
- net_buf_put (& smpt -> zst_fifo , nb );
159
- k_work_submit_to_queue (& smp_work_queue , & smpt -> zst_work );
158
+ net_buf_put (& smpt -> fifo , nb );
159
+ k_work_submit_to_queue (& smp_work_queue , & smpt -> work );
160
160
}
161
161
162
162
static int smp_init (const struct device * dev )
0 commit comments