nuttx/wireless: add wireless event member length helper

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-09-17 17:27:41 +08:00 committed by Xiang Xiao
parent 216c33a5c7
commit 9e45d6e88e

View File

@ -572,4 +572,11 @@ struct iw_scan_req
struct iw_freq channel_list[IW_MAX_FREQUENCIES];
};
/*
* A Wireless Event. Contains basically the same data as the ioctl...
*/
#define IW_EV_LEN(field) \
(offsetof(struct iw_event, u) + sizeof(((union iwreq_data *)0)->field))
#endif /* __INCLUDE_NUTTX_WIRELESS_WIRELESS_H */