diff --git a/src/mod/cipwap/cipwap_actions_ac.c b/src/mod/cipwap/cipwap_actions_ac.c index c2a88044..390761fc 100644 --- a/src/mod/cipwap/cipwap_actions_ac.c +++ b/src/mod/cipwap/cipwap_actions_ac.c @@ -52,6 +52,7 @@ int cipwap_register_actions_ac(struct cw_actiondef *def) rc += cw_strheap_register_strings(def->strelem, capwap_strings_elem); */ rc += cw_itemdefheap_register(def->items, cipwap_itemdefs); + rc += cw_itemdefheap_register(def->radioitems, cipwap_radioitemdefs); /* rc += cw_itemdefheap_register(def->radioitems, capwap_radiodefs); intavltree_add(def->wbids, 0); diff --git a/src/mod/cipwap/cipwap_items.c b/src/mod/cipwap/cipwap_items.c index 6b1faa40..1aa1acad 100644 --- a/src/mod/cipwap/cipwap_items.c +++ b/src/mod/cipwap/cipwap_items.c @@ -10,6 +10,7 @@ const char CIPWAP_ITEM_SSH_ENABLE[]="ssh_enable"; const char CIPWAP_ITEM_TELNET_ENABLE[]="telnet_enable"; const char CIPWAP_ITEM_AP_HASH_VALUE[]="ap_hash_value"; + struct cw_itemdef cipwap_itemdefs[] = { {CIPWAP_ITEM_TELNET_ENABLE,CW_ITEM_NONE,MBAG_BYTE}, @@ -20,3 +21,15 @@ struct cw_itemdef cipwap_itemdefs[] = { }; +const char CIPWAP_RADIO80211ITEM_OCCUPANCY_LIMIT[]="occupancy_limit"; +const char CIPWAP_RADIO80211ITEM_CFP_PERIOD[]="cfp_period"; + +struct cw_itemdef cipwap_radioitemdefs[] = { + + {CIPWAP_RADIO80211ITEM_OCCUPANCY_LIMIT,CW_ITEM_NONE,MBAG_WORD}, + {CIPWAP_RADIO80211ITEM_CFP_PERIOD,CW_ITEM_NONE,MBAG_BYTE}, + + {CW_ITEM_NONE} + +}; + diff --git a/src/mod/cipwap/cipwap_items.h b/src/mod/cipwap/cipwap_items.h index d496331c..2a1a6394 100644 --- a/src/mod/cipwap/cipwap_items.h +++ b/src/mod/cipwap/cipwap_items.h @@ -5,6 +5,10 @@ extern const char CIPWAP_ITEM_SSH_ENABLE[]; extern const char CIPWAP_ITEM_TELNET_ENABLE[]; extern const char CIPWAP_ITEM_AP_HASH_VALUE[]; +extern const char CIPWAP_RADIO80211ITEM_OCCUPANCY_LIMIT[]; +extern const char CIPWAP_RADIO80211ITEM_CFP_PERIOD[]; + extern struct cw_itemdef cipwap_itemdefs[]; +extern struct cw_itemdef cipwap_radioitemdefs[]; #endif