Inital commit
FossilOrigin-Name: f3c5e41f167275d0ae8e3b1228f96a2aeb770e7f74e0f66703bbceace1b09580
This commit is contained in:
parent
1317228019
commit
f329ca63a8
30
src/mod/cisco/cisco80211_in_wtp_radio_configuration.c
Normal file
30
src/mod/cisco/cisco80211_in_wtp_radio_configuration.c
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
#include "cw/mbag.h"
|
||||
#include "cw/action.h"
|
||||
#include "cw/cw.h"
|
||||
#include "cw/dbg.h"
|
||||
|
||||
#include "include/cipwap_items.h"
|
||||
#include "cisco_items.h"
|
||||
|
||||
|
||||
int cisco80211_in_wtp_radio_configuration(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
||||
int len, struct sockaddr *from)
|
||||
{
|
||||
int rid = cw_get_byte(data);
|
||||
mbag_t r = mbag_i_get_mbag(conn->radios,rid,NULL);
|
||||
if (!r){
|
||||
cw_dbg(DBG_ELEM_ERR,"Radio not found %d",r);
|
||||
return 0;
|
||||
}
|
||||
|
||||
mbag_set_byte(r,CISCO_RADIOITEM80211_CFG_TYPE,cw_get_byte(data+1));
|
||||
mbag_set_word(r,CIPWAP_RADIOITEM80211_OCCUPANCY_LIMIT,cw_get_word(data+2));
|
||||
mbag_set_byte(r,CIPWAP_RADIOITEM80211_CFP_PERIOD,cw_get_byte(data+4));
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user