linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@gmail.com>
To: "Frank Schäfer" <fschaefer.oss@googlemail.com>
Cc: chunkeey@googlemail.com, j@w1.fi, linux-wireless@vger.kernel.org
Subject: Re: [Bug] carl9170 + wpa_supplicant: P2P mode doesn't work with separate interfaces
Date: Sat, 18 Apr 2020 18:30:13 +0200	[thread overview]
Message-ID: <8972271.5nXPVzACVl@debian64> (raw)
In-Reply-To: <3a9d86b6-744f-e670-8792-9167257edef8@googlemail.com>

Hi,

On Saturday, 18 April 2020 13:20:27 CEST Frank Schäfer wrote:
> I'm currently testing Miraclecast 
> (https://github.com/albfan/miraclecast), an open source 
> Wifi-Display/Miracast implementation.
> In one of my setups, I'm using a carl9170 device as sink, which fails 
> with the following debugging output:
> 
It's been a very long time. But I do remember meddling with P2P. Part of the
reason is that the carl9170 driver needed these virtual interfaces initialized
in a specific order.

So for P2P GO+CLIENT, you would have to initialize the P2P-GO interface first
and the P2P Client interface second. Which is backwards of what the wpa_supplicant
does.

Same is true for STA+AP (Repeater). The AP has to start first before the STA
can be brought up (Also the STA must not interfere with channel operations, as
the fast channel change feature doesn't work right on the AR9170 Hardware).

This is documented in the driver:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wireless/ath/carl9170/main.c#n625>

and was changed as part of this commit:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/ath/carl9170/main.c?id=7f878b0d96e6b3bd27d736fb2fb7e3cc94b16b26>

that identifies the wpa_supplicant commit
["nl80211: Automatically use concurrent P2P if possible"] as the reason.

So since this broke, something must have changed since 2012 I guess.
But I need more details, before I can do something.

Regards,
Christian




  reply	other threads:[~2020-04-18 16:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-18 11:20 [Bug] carl9170 + wpa_supplicant: P2P mode doesn't work with separate interfaces Frank Schäfer
2020-04-18 16:30 ` Christian Lamparter [this message]
2020-04-19 14:08   ` Frank Schäfer
2020-04-27 16:53 ` Frank Schäfer
2020-04-29 16:22   ` Frank Schäfer
2020-05-05 15:04     ` Frank Schäfer

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=8972271.5nXPVzACVl@debian64 \
    --to=chunkeey@gmail.com \
    --cc=chunkeey@googlemail.com \
    --cc=fschaefer.oss@googlemail.com \
    --cc=j@w1.fi \
    --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).