2016-04-12 07:33:24 +02:00
|
|
|
|
2018-03-03 17:42:28 +01:00
|
|
|
#include "capwap.h"
|
|
|
|
|
2016-04-12 07:33:24 +02:00
|
|
|
#include "conn.h"
|
|
|
|
|
|
|
|
#include "mavl.h"
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
/*
|
2016-04-12 07:33:24 +02:00
|
|
|
void conn_clear_upd(struct conn *conn, int merge)
|
|
|
|
{
|
|
|
|
if (merge){
|
|
|
|
mavl_merge(conn->config, conn->config_upd);
|
|
|
|
|
|
|
|
MAVLITER_DEFINE (it,conn->radios_upd);
|
|
|
|
|
|
|
|
mavliter_foreach(&it){
|
|
|
|
struct mbag_item * ruitem = mavliter_get(&it);
|
2018-03-03 17:42:28 +01:00
|
|
|
mavl_t radio_upd = ruitem->u2.data;
|
2016-04-12 07:33:24 +02:00
|
|
|
|
2018-03-03 17:42:28 +01:00
|
|
|
mbag_t radio = mbag_i_get_mbag(conn->radios,ruitem->u1.iid,NULL);
|
2016-04-12 07:33:24 +02:00
|
|
|
if (radio){
|
|
|
|
mavl_merge(radio,radio_upd);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
mavl_del_all(conn->config_upd);
|
|
|
|
mavl_del_all(conn->radios_upd);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
*/
|