Moved out functio to radio.c.
FossilOrigin-Name: 9cad0b74d2f32346377df637c38f1f7ef31f5f24a0c7b10d2bb1609f8387140c
This commit is contained in:
parent
f0a395dbc1
commit
1a5be1fa02
@ -7,26 +7,6 @@
|
||||
#include "radio.h"
|
||||
|
||||
|
||||
int cw_radio_set_admin_state(mbag_t radios,int rid, int state, int cause)
|
||||
{
|
||||
mbag_t radio = mbag_get_mbag(radios,rid,NULL);
|
||||
if (!radio) {
|
||||
cw_dbg(DBG_ELEM_ERR,"Can't set radio administrative state for radio %d - radio does't exists",rid);
|
||||
return 0;
|
||||
}
|
||||
mbag_set_byte(radio,CW_RADIO_ADMIN_STATE,state);
|
||||
|
||||
if (cause < 0)
|
||||
return 1;
|
||||
|
||||
|
||||
/* Set operational state for next config update response. */
|
||||
|
||||
mbag_set_word(radio,CW_RADIO_OPER_STATE, (state<<8) | 3);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
int cw_in_radio_administrative_state(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len,
|
||||
struct sockaddr *from)
|
||||
|
Loading…
Reference in New Issue
Block a user