From: Samuel Ortiz <sameo@linux.intel.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
"Zhu, Yi" <yi.zhu@intel.com>
Subject: Re: [PATCH 2/2 RFC] mac80211: connect API port
Date: Tue, 23 Jun 2009 13:37:13 +0200 [thread overview]
Message-ID: <20090623113712.GA5349@sortiz.org> (raw)
In-Reply-To: <1245755947.4184.42.camel@johannes.local>
Hi Johannes,
On Tue, Jun 23, 2009 at 01:19:07PM +0200, Johannes Berg wrote:
> On Mon, 2009-06-22 at 19:51 +0200, Samuel Ortiz wrote:
> > With the connect()/disconnect() API, some of the mac80211 STA wext
> > hooks can now move to cfg80211.
> >
> > Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
> > ---
> > net/mac80211/cfg.c | 40 +++++++++++++++++----------
> > net/mac80211/mlme.c | 15 ----------
>
> ---
> net/mac80211/mlme.c | 54 ----------------------------------------------------
> 1 file changed, 54 deletions(-)
I thought about this one, but wasnt sure since we're now sending an
IWEVASSOCRESPIE event while the current code is sending a custom one. I guess
it's fine, just wanted to know if Jouni is fine with it.
Cheers,
Samuel.
> --- wireless-testing.orig/net/mac80211/mlme.c 2009-06-23 13:18:25.000000000 +0200
> +++ wireless-testing/net/mac80211/mlme.c 2009-06-23 13:18:37.000000000 +0200
> @@ -868,59 +868,6 @@ static u32 ieee80211_handle_bss_capabili
> return changed;
> }
>
> -static void ieee80211_sta_send_associnfo(struct ieee80211_sub_if_data *sdata)
> -{
> - struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
> - char *buf;
> - size_t len;
> - int i;
> - union iwreq_data wrqu;
> -
> - if (!ifmgd->assocreq_ies && !ifmgd->assocresp_ies)
> - return;
> -
> - buf = kmalloc(50 + 2 * (ifmgd->assocreq_ies_len +
> - ifmgd->assocresp_ies_len), GFP_KERNEL);
> - if (!buf)
> - return;
> -
> - len = sprintf(buf, "ASSOCINFO(");
> - if (ifmgd->assocreq_ies) {
> - len += sprintf(buf + len, "ReqIEs=");
> - for (i = 0; i < ifmgd->assocreq_ies_len; i++) {
> - len += sprintf(buf + len, "%02x",
> - ifmgd->assocreq_ies[i]);
> - }
> - }
> - if (ifmgd->assocresp_ies) {
> - if (ifmgd->assocreq_ies)
> - len += sprintf(buf + len, " ");
> - len += sprintf(buf + len, "RespIEs=");
> - for (i = 0; i < ifmgd->assocresp_ies_len; i++) {
> - len += sprintf(buf + len, "%02x",
> - ifmgd->assocresp_ies[i]);
> - }
> - }
> - len += sprintf(buf + len, ")");
> -
> - if (len > IW_CUSTOM_MAX) {
> - len = sprintf(buf, "ASSOCRESPIE=");
> - for (i = 0; i < ifmgd->assocresp_ies_len; i++) {
> - len += sprintf(buf + len, "%02x",
> - ifmgd->assocresp_ies[i]);
> - }
> - }
> -
> - if (len <= IW_CUSTOM_MAX) {
> - memset(&wrqu, 0, sizeof(wrqu));
> - wrqu.data.length = len;
> - wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf);
> - }
> -
> - kfree(buf);
> -}
> -
> -
> static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata,
> u32 bss_info_changed)
> {
> @@ -953,7 +900,6 @@ static void ieee80211_set_associated(str
>
> ifmgd->flags |= IEEE80211_STA_PREV_BSSID_SET;
> memcpy(ifmgd->prev_bssid, sdata->u.mgd.bssid, ETH_ALEN);
> - ieee80211_sta_send_associnfo(sdata);
>
> ifmgd->last_probe = jiffies;
> ieee80211_led_assoc(local, 1);
>
>
--
Intel Open Source Technology Centre
http://oss.intel.com/
next prev parent reply other threads:[~2009-06-23 11:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 17:04 [PATCH 1/2 RFC] cfg80211: connect/disconnect API Samuel Ortiz
2009-06-22 17:51 ` [PATCH 2/2 RFC] mac80211: connect API port Samuel Ortiz
2009-06-23 11:19 ` Johannes Berg
2009-06-23 11:37 ` Samuel Ortiz [this message]
2009-06-23 11:41 ` Johannes Berg
2009-06-22 19:08 ` [PATCH 1/2 RFC] cfg80211: connect/disconnect API Johannes Berg
2009-06-23 11:49 ` Samuel Ortiz
2009-06-23 11:53 ` Johannes Berg
2009-06-22 19:27 ` Johannes Berg
2009-06-23 11:24 ` Johannes Berg
2009-06-23 11:25 ` Johannes Berg
2009-06-23 11:28 ` Johannes Berg
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=20090623113712.GA5349@sortiz.org \
--to=sameo@linux.intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=yi.zhu@intel.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;
as well as URLs for NNTP newsgroup(s).