Separating cipwap/capwap/...
FossilOrigin-Name: b1ce08cd3e7e9389bef7f6f2b038cd5fc95c31150341b17b78b8a116594cb4cb
This commit is contained in:
@ -136,7 +136,7 @@ static int scn_radios(char *js, jsmntok_t * t)
|
||||
|
||||
printf("Radio id %d\n",rid);
|
||||
mbag_t radio=mbag_i_get_mbag_c(conn->radios,rid,mbag_create);
|
||||
scn_obj(js,to+1,radio,conn->actions->items /*radioitems*/,NULL);
|
||||
scn_obj(js,to+1,radio,conn->actions->radioitems /*radioitems*/,NULL);
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef __DOT11_H
|
||||
#define __DOT11_H
|
||||
#ifndef __DOT11X_H
|
||||
#define __DOT11X_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
@ -114,7 +114,7 @@ int run_join_d(struct sockaddr *sa)
|
||||
|
||||
/* we call connect to bind this socket to a local IP address,
|
||||
* which we can later obtain by getsockname */
|
||||
rc = connect(sockfd, (struct sockaddr *) sa,
|
||||
/* rc = connect(sockfd, (struct sockaddr *) sa,
|
||||
sock_addrlen((struct sockaddr *) sa));
|
||||
|
||||
if (rc < 0) {
|
||||
@ -123,7 +123,7 @@ int run_join_d(struct sockaddr *sa)
|
||||
close(sockfd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
cw_dbg(DBG_DTLS, "Establishing DTLS session with %s", sock_addr2str(sa));
|
||||
|
||||
|
@ -132,16 +132,17 @@ int main()
|
||||
struct conn *conn = the_conn;
|
||||
|
||||
conn->radios = mbag_i_create();
|
||||
conn->radios_upd=conn->radios;
|
||||
mbag_i_set_mbag(conn->radios,0,mbag_create());
|
||||
// mbag_i_set_mbag(conn->radios,1,mbag_create());
|
||||
// mbag_set_mbag(conn->radios,0xff,mbag_create());
|
||||
|
||||
|
||||
|
||||
#define CWMOD "cisco"
|
||||
#define CWBIND "cisco"
|
||||
//#define CWMOD "capwap"
|
||||
//#define CWBIND "capwap80211"
|
||||
//#define CWMOD "cisco"
|
||||
//#define CWBIND "cisco"
|
||||
#define CWMOD "capwap"
|
||||
#define CWBIND "capwap80211"
|
||||
|
||||
|
||||
struct mod_wtp *mod = modload_wtp(CWMOD);
|
||||
@ -206,11 +207,11 @@ int main()
|
||||
printf("RID = %d\n",i->iid);
|
||||
printf("DATA: %p\n",i->data);
|
||||
mbag_t radio= (mbag_t)i->data;
|
||||
struct mbag_item *mri = mbag_get(radio,CW_ITEM80211_WTP_RADIO_INFORMATION);
|
||||
struct mbag_item *mri = mbag_get(radio,CW_RADIOITEM80211_WTP_RADIO_INFORMATION);
|
||||
|
||||
if (!mri){
|
||||
printf("Setting to 8 %p %p\n",mri,r);
|
||||
mbag_set_dword(radio,CW_ITEM80211_WTP_RADIO_INFORMATION,8);
|
||||
mbag_set_dword(radio,CW_RADIOITEM80211_WTP_RADIO_INFORMATION,1);
|
||||
}
|
||||
else{
|
||||
printf("MRI %p\n",mri);
|
||||
|
@ -1,4 +1,9 @@
|
||||
|
||||
|
||||
int wtpdrv_get_num_radios();
|
||||
//int wtpdrv_get_num_radios();
|
||||
|
||||
struct wtpdrv
|
||||
{
|
||||
int (*get_num_raadios)();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user