From: Johannes Berg <johannes@sipsolutions.net>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>,
"Peer, Ilan" <ilan.peer@intel.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"chaitanya.mgit@gmail.com" <chaitanya.mgit@gmail.com>
Subject: Re: AP + P2P_GO multichan tests with intel7260 as a P2P_CLIENT - direct probe issue
Date: Thu, 02 Jul 2015 09:27:12 +0200 [thread overview]
Message-ID: <1435822032.2285.2.camel@sipsolutions.net> (raw)
In-Reply-To: <CALhHN=okaQGRQAPdLm1dxCaYFDBD3bq4=yr2eMU_55LDtzoHLw@mail.gmail.com> (sfid-20150627_234919_920334_D8F4F928)
On Sat, 2015-06-27 at 23:49 +0200, Janusz Dziedzic wrote:
>
> I just check the mac80211/cfg80211 code, and I am not sure this
> direct probe could work correctly.
>
> Function ieee80211_rx_mgmt_probe_resp() is interesting.
> Seems we call
> ieee80211_rx_bss_info() -> ieee80211_bss_info_update ->
> cfg80211_inform_bss_width_frame() -> cfg80211_bss_update() -> this
> could set bss->proberesp_ies
> and after that check:
>
> if (ifmgd->auth_data && !ifmgd->auth_data->bss->proberesp_ies
> &&
> ether_addr_equal(mgmt->bssid, ifmgd->auth_data->bss
> ->bssid)) {
> /* got probe response, continue with auth */
> sdata_info(sdata, "direct probe responded\n");
>
> So, ifmgd->auth_data->bss->proberesp_ies could be set before check?
>
> BTW, During my tests (no matter which card used) I never saw this
> msg:
> sdata_info(sdata, "direct probe responded\n");
> And always saw 3 failed direct probes.
>
> @Johannes: Is that possible or I miss something.
>
I agree that this looks like a bug, but I'm not sure it's really all
that relevant?
After all, ieee80211_probe_auth() takes ->proberesp_ies as its only
condition, so even if it doesn't get triggered immediately by the
"direct probe responded", it should send an auth frame the next round,
just the rounds counter wouldn't restart at 0 again.
Perhaps though the changes in cfg80211's BSS management broke this
whole logic? Then again, that's quite a while ago.
The issue above can probably easily fixed by doing the BSS update after
the "direct probe responded" though, no? Like this:
https://p.sipsolutions.net/67f9212f0f9f3642.txt
johannes
next prev parent reply other threads:[~2015-07-02 7:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 8:50 AP + P2P_GO multichan tests with intel7260 as a P2P_CLIENT - direct probe issue Janusz Dziedzic
2015-06-23 11:11 ` Peer, Ilan
2015-06-23 11:29 ` Krishna Chaitanya
2015-06-23 11:55 ` Peer, Ilan
2015-06-23 12:04 ` Krishna Chaitanya
2015-06-23 18:00 ` Peer, Ilan
2015-06-24 12:20 ` Peer, Ilan
2015-06-27 21:49 ` Janusz Dziedzic
2015-06-27 22:03 ` Janusz Dziedzic
2015-06-28 8:36 ` Peer, Ilan
2015-07-02 7:27 ` Johannes Berg [this message]
2015-07-02 9:02 ` Krishna Chaitanya
2015-07-02 11:38 ` Johannes Berg
2015-07-02 11:49 ` Krishna Chaitanya
2015-07-02 9:44 ` Janusz Dziedzic
2015-07-02 11:39 ` Johannes Berg
2015-07-02 11:50 ` Krishna Chaitanya
2015-07-02 12:01 ` Johannes Berg
2015-07-02 12:13 ` Krishna Chaitanya
2015-07-02 12:37 ` 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=1435822032.2285.2.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=chaitanya.mgit@gmail.com \
--cc=ilan.peer@intel.com \
--cc=janusz.dziedzic@tieto.com \
--cc=linux-wireless@vger.kernel.org \
/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).