A lot of LWAPP and Cisco stuff added.
FossilOrigin-Name: a95a9632485d5b2632f48c24eea56f7dcca9a4c423981287040e532c22eeab74
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
#include "capwap/capwap.h"
|
||||
#include "capwap/conn.h"
|
||||
#include "wtp_interface.h"
|
||||
|
||||
int configure()
|
||||
{
|
||||
sleep(10);
|
||||
struct conn * conn = get_conn();
|
||||
struct wtpinfo * wtpinfo = get_wtpinfo();
|
||||
|
||||
cw_prepare_configuration_status_request(conn,wtpinfo);
|
||||
struct radioinfo *rip = &(wtpinfo->radioinfo[0]);
|
||||
|
||||
cw_prepare_configuration_status_request(conn,rip,wtpinfo);
|
||||
conn_send_request(conn);
|
||||
|
||||
exit(0);
|
||||
|
@ -146,9 +146,10 @@ int wtpconf_name()
|
||||
|
||||
char * default_ac_list[] = {
|
||||
// "192.168.0.255",
|
||||
"255.255.255.255",
|
||||
"255.255.255.255"
|
||||
// "224.0.1.140",
|
||||
//"192.168.0.77"
|
||||
//"192.168.56.99"
|
||||
};
|
||||
|
||||
int wtpconf_ac_list()
|
||||
|
@ -59,6 +59,8 @@ struct wtpinfo * get_wtpinfo()
|
||||
wtpinfo->macaddress=conf_macaddress;
|
||||
wtpinfo->macaddress_len=conf_macaddress_len;
|
||||
|
||||
|
||||
|
||||
|
||||
wtpinfo->max_msg_len=14000;
|
||||
|
||||
|
@ -63,7 +63,7 @@ int main()
|
||||
|
||||
#include <time.h>
|
||||
|
||||
|
||||
int pmu;
|
||||
|
||||
//#include <openssl/ssl.h>
|
||||
|
||||
@ -75,6 +75,10 @@ int do_connect(void *priv,void *data)
|
||||
|
||||
sock_setport(&ip->ip,atoi(conf_control_port));
|
||||
// printf("Would connect to %s\n",str);
|
||||
|
||||
|
||||
printf("Sleep 5000\n");
|
||||
printf("slept\n");
|
||||
|
||||
int rc;
|
||||
rc = join(&ip->ip);
|
||||
@ -83,10 +87,10 @@ int do_connect(void *priv,void *data)
|
||||
|
||||
printf("Sleep after oin\n");
|
||||
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);
|
||||
// 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);
|
||||
|
||||
|
@ -1215,16 +1215,20 @@ int wtpdrv_get_num_radios()
|
||||
|
||||
int wtpdrv_get_radioinfo(int rid,struct radioinfo * radioinfo)
|
||||
{
|
||||
|
||||
radioinfo->rid=rid;
|
||||
//uint8_t rm[8]="12345600";
|
||||
// uint8_t rm[8]={0x00,0x19,0xdb,0xe0,0x93,0x27};
|
||||
// uint8_t rm[8]={0x00,0x3a,0x99,0x02,0xfa,0xc0};
|
||||
uint8_t rm[8]={0x68,0x67,0x65,0x64,0x63,0x62};
|
||||
uint8_t rm[8]={0x00,0x3a,0x99,0x02,0xfa,0xc0};
|
||||
// uint8_t rm[8]={0x68,0x67,0x65,0x64,0x63,0x62};
|
||||
|
||||
radioinfo->rmac = bstr_create(rm,6);
|
||||
|
||||
|
||||
radioinfo->type|=rid+1; //CW_80211_RADIO_TYPE_B; //CWRADIO_TYPE_N;
|
||||
radioinfo->regDomain=1;
|
||||
|
||||
memcpy(radioinfo->country_str,"AUDE",4);
|
||||
|
||||
|
||||
/*
|
||||
struct wpa_driver_ops * drv = wpa_drivers[0];
|
||||
|
Reference in New Issue
Block a user