2015-04-19 16:49:29 +02:00
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
/*
|
2015-04-19 16:49:29 +02:00
|
|
|
#include "radio.h"
|
2015-04-28 14:27:31 +02:00
|
|
|
#include "dbg.h"
|
2015-04-19 16:49:29 +02:00
|
|
|
|
2015-05-04 07:42:09 +02:00
|
|
|
const char CW_RADIO_TYPE[]="radio_type";
|
2015-05-01 00:16:54 +02:00
|
|
|
const char CW_RADIO_REG_DOMAIN[]="reg_domain";
|
|
|
|
const char CW_RADIO_BSSID[]="bssid";
|
|
|
|
const char CW_RADIO_SHORT_PREAMBLE[]="short_preamble";
|
|
|
|
const char CW_RADIO_COUNTRY_STRING[]="country_string";
|
2015-05-08 06:43:12 +02:00
|
|
|
const char CW_RADIO_DECRYPTION_ERROR_REPORT_PERIOD[]="decryption_error_report_period";
|
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2016-03-28 10:46:24 +02:00
|
|
|
const char CW_RADIO_SUPPORTED_RATES[]="supported_rates";
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
// Cisco
|
2015-05-01 00:16:54 +02:00
|
|
|
|
|
|
|
const char CW_RADIO_OCCUPANCY_LIMIT[]="occupancy_limit";
|
|
|
|
const char CW_RADIO_CFP_PERIOD[]="cfp_period";
|
|
|
|
const char CW_RADIO_CFP_MAX_DURATION[]="cfp_max_duration";
|
|
|
|
|
|
|
|
|
2016-04-18 07:40:30 +02:00
|
|
|
struct cw_itemdef xxxcapwap_radioitemdefs[] = {
|
|
|
|
//{CW_RADIO_ADMIN_STATE,CW_ITEM_NONE,MBAG_BYTE},
|
2018-02-18 14:17:45 +01:00
|
|
|
{CW_RADIO_TYPE,CW_ITEM_NONE,MTYPE_DWORD},
|
2015-05-08 06:43:12 +02:00
|
|
|
{CW_RADIO_DECRYPTION_ERROR_REPORT_PERIOD,CW_ITEM_NONE,MBAG_WORD},
|
|
|
|
|
2015-05-04 07:42:09 +02:00
|
|
|
{CW_RADIO_BSSID,CW_ITEM_NONE,MBAG_BSTR16},
|
2016-03-28 10:46:24 +02:00
|
|
|
{CW_RADIO_SUPPORTED_RATES,CW_ITEM_NONE,MBAG_DATA},
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2015-05-04 07:42:09 +02:00
|
|
|
{CW_ITEM_NONE}
|
|
|
|
};
|
2015-05-01 00:16:54 +02:00
|
|
|
|
|
|
|
|
2015-04-28 14:27:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-19 16:49:29 +02:00
|
|
|
|
2016-03-19 12:55:40 +01:00
|
|
|
int cw_radio_set_all_admin_states(mbag_t radios,int state, int cause)
|
|
|
|
{
|
|
|
|
MAVLITER_DEFINE(it,radios);
|
|
|
|
mavliter_foreach(&it){
|
|
|
|
mbag_item_t *i = mavliter_get(&it);
|
2018-03-03 17:42:28 +01:00
|
|
|
cw_radio_set_admin_state(radios,i->u1.iid,state,cause);
|
2016-03-19 12:55:40 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2016-03-28 10:46:24 +02:00
|
|
|
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
*/
|