2015-04-24 18:30:26 +02:00
|
|
|
|
2018-03-03 17:42:28 +01:00
|
|
|
#include "mbag.h"
|
2015-04-24 18:30:26 +02:00
|
|
|
#include "action.h"
|
|
|
|
#include "dbg.h"
|
|
|
|
#include "log.h"
|
|
|
|
#include "mbag.h"
|
2016-03-11 22:23:00 +01:00
|
|
|
#include "cw.h"
|
2015-04-28 10:23:03 +02:00
|
|
|
#include "radio.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int cw_in_radio_administrative_state(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len,
|
|
|
|
struct sockaddr *from)
|
|
|
|
{
|
|
|
|
int rid = cw_get_byte(data);
|
|
|
|
int state = cw_get_byte(data+1);
|
|
|
|
return cw_radio_set_admin_state(conn->radios,rid,state,-1);
|
|
|
|
}
|
2015-04-24 18:30:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|