diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-01-17 13:27:03 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-01-17 13:27:03 +0100 |
commit | 75c572074f272f0b983d888f7dd23ee59719c6b0 (patch) | |
tree | a65fc406bbfdff7f62bdc05631d345fd28ab49c3 /iwinfo_nl80211.h | |
parent | 5a5e21b158ae48b86339d337823a01a0f132b09c (diff) | |
download | iwinfo-75c572074f272f0b983d888f7dd23ee59719c6b0.tar.gz |
nl80211: turn nl80211_wait() into variadic function
Extend the nl82011_wait() function to accept multiple command numbers.
This is useful to wait for different possible results, e.g. either
NL80211_CMD_NEW_SCAN_RESULTS or NL80211_CMD_SCAN_ABORTED.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'iwinfo_nl80211.h')
-rw-r--r-- | iwinfo_nl80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iwinfo_nl80211.h b/iwinfo_nl80211.h index bb5117e..566ffce 100644 --- a/iwinfo_nl80211.h +++ b/iwinfo_nl80211.h @@ -48,7 +48,7 @@ struct nl80211_msg_conveyor { }; struct nl80211_event_conveyor { - int wait; + uint32_t wait[(NL80211_CMD_MAX / 32) + !!(NL80211_CMD_MAX % 32)]; int recv; }; |