Improve memory administration for tx/rx packet manager
This commit is contained in:
@ -7,20 +7,11 @@
|
||||
#define CAPWAP_SUPPORTEDRATES_MAXLENGTH 8
|
||||
|
||||
struct capwap_80211_supportedrates_element {
|
||||
unsigned char radioid;
|
||||
unsigned char supportedratescount;
|
||||
unsigned char supportedrates[CAPWAP_SUPPORTEDRATES_MAXLENGTH];
|
||||
uint8_t radioid;
|
||||
uint8_t supportedratescount;
|
||||
uint8_t supportedrates[CAPWAP_SUPPORTEDRATES_MAXLENGTH];
|
||||
};
|
||||
|
||||
struct capwap_message_element* capwap_80211_supportedrates_element_create(void* data, unsigned long length);
|
||||
int capwap_80211_supportedrates_element_validate(struct capwap_message_element* element);
|
||||
void* capwap_80211_supportedrates_element_parsing(struct capwap_message_element* element);
|
||||
void capwap_80211_supportedrates_element_free(void* data);
|
||||
extern struct capwap_message_elements_ops capwap_element_80211_supportedrates_ops;
|
||||
|
||||
/* Helper */
|
||||
#define CAPWAP_CREATE_80211_SUPPORTEDRATES_ELEMENT(x) ({ \
|
||||
struct capwap_message_elements_func* f = capwap_get_message_element(CAPWAP_ELEMENT_80211_SUPPORTEDRATES); \
|
||||
f->create(x, sizeof(struct capwap_80211_supportedrates_element)); \
|
||||
})
|
||||
|
||||
#endif /* __CAPWAP_ELEMENT_80211_SUPPORTEDRATES_HEADER__ */
|
||||
|
Reference in New Issue
Block a user