diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:40 -0400 |
commit | 560c63383f060b5ea68834e4720ab7bfb4303ff7 (patch) | |
tree | fbb0d1c4beadcae36daf4fc9045502830eb81b0e /drivers/net/wireless/libertas/wext.c | |
parent | fea2b8ec8192c62dbf5347c873cb1c8a87717a6a (diff) |
libertas: move mic failure event to wext.c
... because for cfg80211 we'll need a completely different
implementation.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index dc63b33b01f0..a8eb9e1fcf36 100644 --- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c | |||
@@ -54,7 +54,7 @@ void lbs_send_disconnect_notification(struct lbs_private *priv) | |||
54 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); | 54 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); |
55 | } | 55 | } |
56 | 56 | ||
57 | void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str) | 57 | static void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str) |
58 | { | 58 | { |
59 | union iwreq_data iwrq; | 59 | union iwreq_data iwrq; |
60 | u8 buf[50]; | 60 | u8 buf[50]; |
@@ -79,6 +79,31 @@ void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * @brief This function handles MIC failure event. | ||
83 | * | ||
84 | * @param priv A pointer to struct lbs_private structure | ||
85 | * @para event the event id | ||
86 | * @return n/a | ||
87 | */ | ||
88 | void lbs_send_mic_failureevent(struct lbs_private *priv, u32 event) | ||
89 | { | ||
90 | char buf[50]; | ||
91 | |||
92 | lbs_deb_enter(LBS_DEB_CMD); | ||
93 | memset(buf, 0, sizeof(buf)); | ||
94 | |||
95 | sprintf(buf, "%s", "MLME-MICHAELMICFAILURE.indication "); | ||
96 | |||
97 | if (event == MACREG_INT_CODE_MIC_ERR_UNICAST) | ||
98 | strcat(buf, "unicast "); | ||
99 | else | ||
100 | strcat(buf, "multicast "); | ||
101 | |||
102 | lbs_send_iwevcustom_event(priv, buf); | ||
103 | lbs_deb_leave(LBS_DEB_CMD); | ||
104 | } | ||
105 | |||
106 | /** | ||
82 | * @brief Find the channel frequency power info with specific channel | 107 | * @brief Find the channel frequency power info with specific channel |
83 | * | 108 | * |
84 | * @param priv A pointer to struct lbs_private structure | 109 | * @param priv A pointer to struct lbs_private structure |