aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2009-10-22 09:30:57 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:40 -0400
commit560c63383f060b5ea68834e4720ab7bfb4303ff7 (patch)
treefbb0d1c4beadcae36daf4fc9045502830eb81b0e /drivers/net/wireless/libertas/cmdresp.c
parentfea2b8ec8192c62dbf5347c873cb1c8a87717a6a (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/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index abd20ea92553..21d57690c20a 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -73,32 +73,6 @@ void lbs_mac_event_disconnected(struct lbs_private *priv)
73 lbs_deb_leave(LBS_DEB_ASSOC); 73 lbs_deb_leave(LBS_DEB_ASSOC);
74} 74}
75 75
76/**
77 * @brief This function handles MIC failure event.
78 *
79 * @param priv A pointer to struct lbs_private structure
80 * @para event the event id
81 * @return n/a
82 */
83static void handle_mic_failureevent(struct lbs_private *priv, u32 event)
84{
85 char buf[50];
86
87 lbs_deb_enter(LBS_DEB_CMD);
88 memset(buf, 0, sizeof(buf));
89
90 sprintf(buf, "%s", "MLME-MICHAELMICFAILURE.indication ");
91
92 if (event == MACREG_INT_CODE_MIC_ERR_UNICAST) {
93 strcat(buf, "unicast ");
94 } else {
95 strcat(buf, "multicast ");
96 }
97
98 lbs_send_iwevcustom_event(priv, buf);
99 lbs_deb_leave(LBS_DEB_CMD);
100}
101
102static int lbs_ret_reg_access(struct lbs_private *priv, 76static int lbs_ret_reg_access(struct lbs_private *priv,
103 u16 type, struct cmd_ds_command *resp) 77 u16 type, struct cmd_ds_command *resp)
104{ 78{
@@ -477,12 +451,12 @@ int lbs_process_event(struct lbs_private *priv, u32 event)
477 451
478 case MACREG_INT_CODE_MIC_ERR_UNICAST: 452 case MACREG_INT_CODE_MIC_ERR_UNICAST:
479 lbs_deb_cmd("EVENT: UNICAST MIC ERROR\n"); 453 lbs_deb_cmd("EVENT: UNICAST MIC ERROR\n");
480 handle_mic_failureevent(priv, MACREG_INT_CODE_MIC_ERR_UNICAST); 454 lbs_send_mic_failureevent(priv, event);
481 break; 455 break;
482 456
483 case MACREG_INT_CODE_MIC_ERR_MULTICAST: 457 case MACREG_INT_CODE_MIC_ERR_MULTICAST:
484 lbs_deb_cmd("EVENT: MULTICAST MIC ERROR\n"); 458 lbs_deb_cmd("EVENT: MULTICAST MIC ERROR\n");
485 handle_mic_failureevent(priv, MACREG_INT_CODE_MIC_ERR_MULTICAST); 459 lbs_send_mic_failureevent(priv, event);
486 break; 460 break;
487 461
488 case MACREG_INT_CODE_MIB_CHANGED: 462 case MACREG_INT_CODE_MIB_CHANGED: