/*1* Copyright 2007 Johannes Berg <[email protected]>2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*7* mac80211 - events8*/9#include <net/cfg80211.h>10#include "ieee80211_i.h"1112/*13* Indicate a failed Michael MIC to userspace. If the caller knows the TSC of14* the frame that generated the MIC failure (i.e., if it was provided by the15* driver or is still in the frame), it should provide that information.16*/17void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx,18struct ieee80211_hdr *hdr, const u8 *tsc,19gfp_t gfp)20{21cfg80211_michael_mic_failure(sdata->dev, hdr->addr2,22(hdr->addr1[0] & 0x01) ?23NL80211_KEYTYPE_GROUP :24NL80211_KEYTYPE_PAIRWISE,25keyidx, tsc, gfp);26}272829