From: Randy Dunlap <rdunlap@xenotime.net>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: "linux-wireless" <linux-wireless@vger.kernel.org>,
John Linville <linville@tuxdriver.com>,
Dan Williams <dcbw@redhat.com>
Subject: Re: [PATCH] libertas: move mic failure event to wext.c
Date: Tue, 20 Oct 2009 08:54:31 -0700 [thread overview]
Message-ID: <20091020085431.e26cce67.rdunlap@xenotime.net> (raw)
In-Reply-To: <200910201505.14283.hs4233@mail.mn-solutions.de>
On Tue, 20 Oct 2009 15:05:14 +0200 Holger Schurig wrote:
> ... because for cfg80211 we'll need a completely different
> implementation.
>
> Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
>
> --- linux-wl.orig/drivers/net/wireless/libertas/cmdresp.c
> +++ linux-wl/drivers/net/wireless/libertas/cmdresp.c
> @@ -73,32 +73,6 @@
> lbs_deb_leave(LBS_DEB_ASSOC);
> }
>
> -/**
> - * @brief This function handles MIC failure event.
> - *
> - * @param priv A pointer to struct lbs_private structure
> - * @para event the event id
> - * @return n/a
> - */
> -static void handle_mic_failureevent(struct lbs_private *priv, u32 event)
> -{
> - char buf[50];
> -
> - lbs_deb_enter(LBS_DEB_CMD);
> - memset(buf, 0, sizeof(buf));
> -
> - sprintf(buf, "%s", "MLME-MICHAELMICFAILURE.indication ");
> -
> - if (event == MACREG_INT_CODE_MIC_ERR_UNICAST) {
> - strcat(buf, "unicast ");
> - } else {
> - strcat(buf, "multicast ");
> - }
> -
> - lbs_send_iwevcustom_event(priv, buf);
> - lbs_deb_leave(LBS_DEB_CMD);
> -}
> -
> static int lbs_ret_reg_access(struct lbs_private *priv,
> u16 type, struct cmd_ds_command *resp)
> {
> @@ -477,12 +451,12 @@
>
> case MACREG_INT_CODE_MIC_ERR_UNICAST:
> lbs_deb_cmd("EVENT: UNICAST MIC ERROR\n");
> - handle_mic_failureevent(priv, MACREG_INT_CODE_MIC_ERR_UNICAST);
> + lbs_send_mic_failureevent(priv, event);
> break;
>
> case MACREG_INT_CODE_MIC_ERR_MULTICAST:
> lbs_deb_cmd("EVENT: MULTICAST MIC ERROR\n");
> - handle_mic_failureevent(priv, MACREG_INT_CODE_MIC_ERR_MULTICAST);
> + lbs_send_mic_failureevent(priv, event);
> break;
>
> case MACREG_INT_CODE_MIB_CHANGED:
> --- linux-wl.orig/drivers/net/wireless/libertas/wext.c
> +++ linux-wl/drivers/net/wireless/libertas/wext.c
> @@ -54,7 +54,7 @@
> wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL);
> }
>
> -void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str)
> +static void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str)
> {
> union iwreq_data iwrq;
> u8 buf[50];
> @@ -79,6 +79,31 @@
> }
>
> /**
> + * @brief This function handles MIC failure event.
> + *
> + * @param priv A pointer to struct lbs_private structure
> + * @para event the event id
> + * @return n/a
> + */
argh. urgh. This file (or files) need to lose this non-kernel-doc
function notation. Please.
> +void lbs_send_mic_failureevent(struct lbs_private *priv, u32 event)
> +{
> + char buf[50];
> +
> + lbs_deb_enter(LBS_DEB_CMD);
> + memset(buf, 0, sizeof(buf));
> +
> + sprintf(buf, "%s", "MLME-MICHAELMICFAILURE.indication ");
> +
> + if (event == MACREG_INT_CODE_MIC_ERR_UNICAST)
> + strcat(buf, "unicast ");
> + else
> + strcat(buf, "multicast ");
> +
> + lbs_send_iwevcustom_event(priv, buf);
> + lbs_deb_leave(LBS_DEB_CMD);
> +}
> +
> +/**
> * @brief Find the channel frequency power info with specific channel
> *
> * @param priv A pointer to struct lbs_private structure
---
~Randy
next prev parent reply other threads:[~2009-10-20 15:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 13:05 [PATCH] libertas: move mic failure event to wext.c Holger Schurig
2009-10-20 15:54 ` Randy Dunlap [this message]
2009-10-22 7:21 ` Holger Schurig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091020085431.e26cce67.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=dcbw@redhat.com \
--cc=hs4233@mail.mn-solutions.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox