More Cisco support (LWAPP)

FossilOrigin-Name: 0c04ab44846547da7a311be84cd0cc753ef61b5204ebbcea4b19408b8a7d3fe9
This commit is contained in:
7u83@mail.ru
2015-03-23 21:26:05 +00:00
parent 908afe182d
commit c809225c83
10 changed files with 114 additions and 44 deletions

View File

@ -3,11 +3,13 @@
int configure()
{
sleep(10);
struct conn * conn = get_conn();
struct wtpinfo * wtpinfo = get_wtpinfo();
cw_prepare_configuration_status_request(conn,wtpinfo);
conn_send_request(conn);
exit(0);
}

View File

@ -39,11 +39,11 @@ int join_state(struct conn * conn)
struct radioinfo *rip = &(wtpinfo->radioinfo[0]);
#ifdef WITH_CW_LOG_DEBUG
char str[64];
sock_addrtostr(&conn->addr,str,64);
//#ifdef WITH_CW_LOG_DEBUG
// char str[64];
// sock_addrtostr(&conn->addr,str,64);
// cw_log_debug0("Sending join request to %s",str);
#endif
//#endif
printf("Seqnum before = %i\n",conn->seqnum);
rc = cwsend_join_request(conn,rip,wtpinfo);
printf("Seqnum after = %i\n",conn->seqnum);

View File

@ -82,8 +82,13 @@ int do_connect(void *priv,void *data)
return 1;
printf("Sleep after oin\n");
sleep(5);
printf("Go conf\n");
extern struct conn * get_conn();
extern join_state(struct conn * conn);
struct conn * conn = get_conn();
printf("Join conn = %p\n",conn);
// join_state(conn);
// rc = join(&ip->ip);