All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: albertofanjul@gmail.com, linux-wireless@vger.kernel.org
Subject: Re: Checking p2p capabilities
Date: Tue, 19 Jan 2016 12:57:50 +0100	[thread overview]
Message-ID: <1453204670.3896.9.camel@sipsolutions.net> (raw)
In-Reply-To: <20160119113457.GA32060@archlinux-alberto> (sfid-20160119_123521_709483_A29A5BDE)

On Tue, 2016-01-19 at 12:34 +0100, albertofanjul@gmail.com wrote:

> Lot of people trying miraclecast ask me:why it's device do not
> support p2p?  (while it's documentation says it does, many times is
> just what they think, not reality).

Well, often the documentation is for the windows or vendor driver, not
for the upstream driver.

> I wonder if that is a matter of driver, modules or pure hardware. Is
> there any way to check it directly and not from a grep inside iw ?.
> 
> something like:
> 
> iw phy wlp3s0 get P2P-client
> iw phy wlp3s0 get P2P-GO

I'm not sure it makes sense to add commands to iw for that, but you can
use python or C code to talk to nl80211 directly.

> About kernel, modules and hardware, are they completely black box for
> others?, I mean, can I detect if my device hardware supports some
> interface but my driver or module can't?

No, you can't detect that.

> At this point my script informs pretty well, and there's a few people
> ask such things, but I would like to check it in a better way, even
> with an api inside my project
> 
> Something related with this lines I could check by myself (I use that
> clone for it's line anchors)
> 
> https://github.com/cozybit/iw/blob/master/util.c#L124
> https://github.com/cozybit/iw/blob/master/info.c#L276
> 
> NL80211_ATTR_SUPPORTED_IFTYPES
> NL80211_IFTYPE_MAX
> 

Right, you'd do something along these lines to directly speak to
nl80211 and query the supported interface types.

johannes

      reply	other threads:[~2016-01-19 11:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19 11:34 Checking p2p capabilities albertofanjul
2016-01-19 11:57 ` Johannes Berg [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=1453204670.3896.9.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=albertofanjul@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.