event.c
Go to the documentation of this file.
00001 /*
00002  * Copyright 2007       Johannes Berg <johannes@sipsolutions.net>
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * mac80211 - events
00009  */
00010 #include <net/cfg80211.h>
00011 #include "ieee80211_i.h"
00012 
00013 /*
00014  * Indicate a failed Michael MIC to userspace. If the caller knows the TSC of
00015  * the frame that generated the MIC failure (i.e., if it was provided by the
00016  * driver or is still in the frame), it should provide that information.
00017  */
00018 void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx,
00019                                      struct ieee80211_hdr *hdr, const u8 *tsc,
00020                                      gfp_t gfp)
00021 {
00022         cfg80211_michael_mic_failure(sdata->dev, hdr->addr2,
00023                                      (hdr->addr1[0] & 0x01) ?
00024                                      NL80211_KEYTYPE_GROUP :
00025                                      NL80211_KEYTYPE_PAIRWISE,
00026                                      keyidx, tsc, gfp);
00027 }


ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:54