linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ujjal Roy <royujjal@gmail.com>
Cc: Kernel <linux-wireless@vger.kernel.org>
Subject: Re: P2P_DEVICE support in driver
Date: Wed, 18 Dec 2013 11:46:41 +0100	[thread overview]
Message-ID: <1387363601.4694.12.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <CAE2MWkn5KT7nM+RgPptbfUDVEz5KThytpNmMUzhQeP30ZSocEg@mail.gmail.com> (sfid-20131218_112927_792469_9DE8FAB4)

On Wed, 2013-12-18 at 15:59 +0530, Ujjal Roy wrote:
> Hi Johannes,
> 
> I want to add P2P_DEVICE support in a driver. And it's not described
> in the P2P spec. So, please tell me the following points -
> 1> what do the driver do?
> 2> register_netdevice() should not be called from driver for the
> P2P_DEVICE interface. Then what are the procedures (network stacks) to
> add a P2P device from driver's point of view?
> 3> How the supplicant will communicate with this type of interface?

A P2P_DEVICE netdev is (always) created by the supplicant if the driver
advertises support for it, and then p2p-device operations are done there
rather than on the wlan0 netdev.

The driver has to support it (interface combinations) and then deal with
add_interface for it. You can see mac80211 with hwsim and iwlmvm for
example.

johannes


  reply	other threads:[~2013-12-18 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 10:29 P2P_DEVICE support in driver Ujjal Roy
2013-12-18 10:46 ` Johannes Berg [this message]
2013-12-18 11:01 ` Arend van Spriel

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=1387363601.4694.12.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=royujjal@gmail.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).