nuttx/wireless: add wireless event member length helper
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
216c33a5c7
commit
9e45d6e88e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user