From: "John W. Linville" <linville@tuxdriver.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: shanyu.zhao@intel.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/1 v3] cfg80211: wext: fix cfg80211's SIOCSIWAP function
Date: Mon, 1 Feb 2010 15:12:47 -0500 [thread overview]
Message-ID: <20100201201246.GD4952@tuxdriver.com> (raw)
In-Reply-To: <1264840545.3546.179.camel@johannes.local>
On Sat, Jan 30, 2010 at 09:35:45AM +0100, Johannes Berg wrote:
>
> > @@ -779,10 +779,15 @@ int __cfg80211_connect(struct cfg80211_registered_device *rdev,
> > wdev->conn->auto_auth = false;
> > }
> >
> > - memcpy(wdev->ssid, connect->ssid, connect->ssid_len);
> > + /* make sure it can connect if only bssid is provided */
> > wdev->ssid_len = connect->ssid_len;
> > - wdev->conn->params.ssid = wdev->ssid;
> > wdev->conn->params.ssid_len = connect->ssid_len;
> > + if (connect->ssid_len) {
> > + memcpy(wdev->ssid, connect->ssid, connect->ssid_len);
> > + wdev->conn->params.ssid = wdev->ssid;
> > + }
> > + else
> > + wdev->conn->params.ssid = NULL;
>
> I don't think I understand this. The wdev->conn->params are initialised
> from "connect", and now you're copying the data back again? That's not
> making sense to me.
>
> Also, please say what exactly are you trying to fix.
>
> Also, cfg80211_mgd_wext_siwap() certainly is _not_ expected to clear the
> SSID, since we want to connect to the previously set SSID. Same with
> cfg80211_mgd_wext_siwessid(), it should _not_ clear the BSSID.
>
> Right now, it looks to me that your patch makes it impossible to specify
> both the SSID and the BSSID to connect to, which is definitely wrong.
>
> John, you mentioned you had applied this, can you revert this patch for
> now?
Yeah, it's coming out... Clearly I didn't understand what it was doing.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
prev parent reply other threads:[~2010-02-01 20:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 21:47 [PATCH 1/1 v3] cfg80211: wext: fix cfg80211's SIOCSIWAP function shanyu.zhao
2010-01-29 22:04 ` John W. Linville
2010-01-30 8:35 ` Johannes Berg
2010-01-30 8:43 ` Johannes Berg
2010-01-31 5:24 ` Zhao, Shanyu
2010-01-31 10:31 ` Johannes Berg
2010-02-01 20:12 ` John W. Linville [this message]
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=20100201201246.GD4952@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=shanyu.zhao@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).