diff options
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 7a966f3ed67a..6cddf7725bf2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -303,9 +303,11 @@ enum ieee80211_bss_change { | |||
303 | /** | 303 | /** |
304 | * enum ieee80211_event_type - event to be notified to the low level driver | 304 | * enum ieee80211_event_type - event to be notified to the low level driver |
305 | * @RSSI_EVENT: AP's rssi crossed the a threshold set by the driver. | 305 | * @RSSI_EVENT: AP's rssi crossed the a threshold set by the driver. |
306 | * @MLME_EVENT: event related to MLME | ||
306 | */ | 307 | */ |
307 | enum ieee80211_event_type { | 308 | enum ieee80211_event_type { |
308 | RSSI_EVENT, | 309 | RSSI_EVENT, |
310 | MLME_EVENT, | ||
309 | }; | 311 | }; |
310 | 312 | ||
311 | /** | 313 | /** |
@@ -327,14 +329,48 @@ struct ieee80211_rssi_event { | |||
327 | }; | 329 | }; |
328 | 330 | ||
329 | /** | 331 | /** |
332 | * enum ieee80211_mlme_event_data - relevant when event type is %MLME_EVENT | ||
333 | * @AUTH_EVENT: the MLME operation is authentication | ||
334 | */ | ||
335 | enum ieee80211_mlme_event_data { | ||
336 | AUTH_EVENT, | ||
337 | }; | ||
338 | |||
339 | /** | ||
340 | * enum ieee80211_mlme_event_status - relevant when event type is %MLME_EVENT | ||
341 | * @MLME_SUCCESS: the MLME operation completed successfully. | ||
342 | * @MLME_DENIED: the MLME operation was denied by the peer. | ||
343 | * @MLME_TIMEOUT: the MLME operation timed out. | ||
344 | */ | ||
345 | enum ieee80211_mlme_event_status { | ||
346 | MLME_SUCCESS, | ||
347 | MLME_DENIED, | ||
348 | MLME_TIMEOUT, | ||
349 | }; | ||
350 | |||
351 | /** | ||
352 | * enum ieee80211_mlme_event - data attached to an %MLME_EVENT | ||
353 | * @data: See &enum ieee80211_mlme_event_data | ||
354 | * @status: See &enum ieee80211_mlme_event_status | ||
355 | * @reason: the reason code if applicable | ||
356 | */ | ||
357 | struct ieee80211_mlme_event { | ||
358 | enum ieee80211_mlme_event_data data; | ||
359 | enum ieee80211_mlme_event_status status; | ||
360 | u16 reason; | ||
361 | }; | ||
362 | |||
363 | /** | ||
330 | * struct ieee80211_event - event to be sent to the driver | 364 | * struct ieee80211_event - event to be sent to the driver |
331 | * @type The event itself. See &enum ieee80211_event_type. | 365 | * @type The event itself. See &enum ieee80211_event_type. |
332 | * @rssi: relevant if &type is %RSSI_EVENT | 366 | * @rssi: relevant if &type is %RSSI_EVENT |
367 | * @mlme: relevant if &type is %AUTH_EVENT | ||
333 | */ | 368 | */ |
334 | struct ieee80211_event { | 369 | struct ieee80211_event { |
335 | enum ieee80211_event_type type; | 370 | enum ieee80211_event_type type; |
336 | union { | 371 | union { |
337 | struct ieee80211_rssi_event rssi; | 372 | struct ieee80211_rssi_event rssi; |
373 | struct ieee80211_mlme_event mlme; | ||
338 | } u; | 374 | } u; |
339 | }; | 375 | }; |
340 | 376 | ||