diff --git a/src/mod/capwap/capwap_actions_wtp.c b/src/mod/capwap/capwap_actions_wtp.c index dc886aa2..16562982 100644 --- a/src/mod/capwap/capwap_actions_wtp.c +++ b/src/mod/capwap/capwap_actions_wtp.c @@ -144,6 +144,22 @@ static cw_action_out_t actions_out[] = { .mand = 1 } + , + + /* --------------------------------------------------------------- + * Join Request + */ + + /* Discovery Type - Discovery Request */ + { + .msg_id = CW_MSG_JOIN_REQUEST, + .elem_id = CW_ELEM_LOCATION_DATA, + .item_id = CW_ITEM_LOCATION_DATA, + .out = cw_out_generic, + .get = cw_out_get_outgoing, + .mand = 1 + } + , diff --git a/src/wtp/join.c b/src/wtp/join.c index 188edd5e..e5249db5 100644 --- a/src/wtp/join.c +++ b/src/wtp/join.c @@ -182,8 +182,6 @@ int run_join(struct conn *conn) int rc = cw_send_request(conn, CW_MSG_JOIN_REQUEST); - - if (!cw_rcok(rc)) { if (rc > 0) { cw_log(LOG_ERR, "Can't Join AC at %s, AC said: %d - %s.", @@ -244,7 +242,6 @@ int join() } - printf("Nudel\n"); return 0;