#include "cw/capwap.h" #include "cw/conn.h" #include "cw/log.h" #include "wtp_interface.h" int configure() { struct conn * conn = get_conn(); int rc = cw_send_request(conn,CW_MSG_CONFIGURATION_STATUS_REQUEST); if (!cw_rcok(rc)) { if (rc > 0) { cw_log(LOG_ERR, "Error sending Configuration Status Request to AC at %s, AC said: %d - %s.", sock_addr2str(&conn->addr), rc, cw_strerror(rc)); } else { cw_log(LOG_ERR, "Error sending Configuration Status Request to AC at %s: %d - %s.", sock_addr2str(&conn->addr), errno, cw_strerror(rc)); } return 0; } return 1; }