All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Cc: "John W . Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org,
	"Luis R . Rodriguez" <rodrigue@qca.qualcomm.com>
Subject: Re: [PATCH v7 1/2] wireless: Driver for 60GHz card wil6210
Date: Fri, 16 Nov 2012 14:40:51 +0100	[thread overview]
Message-ID: <1353073251.9490.17.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <16914852.FhZEtcXc7Y@lx-vladimir>

On Wed, 2012-11-14 at 13:09 +0200, Vladimir Kondratiev wrote:

> 60g is in the very beginning, hardware is almost non existent. This
> driver is for on of the first cards to be released; card itself is far
> from being ready.

Well, yeah, I know :)

Eventually though, hardware will show up, and then somebody might try to
run it with a 3.8 kernel (if this driver gets there) and while it will
be discovered things will be much different than the actual APIs that
come later, since AP mode is really PCP etc. I think that could be
problematic.

> > > + /* group key is not used */
> > > + if (!pairwise)
> > > + return 0;

> > Return an error then?

> I don't know. Group keys are just ignored in 60g band since all data
> transmissions are directed, there is simply no multicast at the MAC
> level. So is it error if supplicant passes group key? Now it is what
> supplicant does, and by ignoring group keys I allow it to proceed with
> secure connection establishment.

Doesn't the supplicant have to do something differently anyway to
establish keys with all stations etc? So it could know about this and
not program any GTKs.

> > > +static int wil_cfg80211_set_default_key(struct wiphy *wiphy,
> > > + struct net_device *ndev,
> > > + u8 key_index, bool unicast,
> > > + bool multicast)

> This is to suppress warning in wiphy_new():
> 
> WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key));

Oh. Maybe that warning doesn't make sense any more then?

> > This seems a bit strange, why export the blobs that came from the
> > filesystem to start with (request_firmware)?

> This is to access firmware internal variables. Those who know firmware
> layout benefit from this.

Ah, ok, makes sense.

> > I don't think so? The interface shouldn't come up with any
> > configuration, that's what start_ap() is used for.

> Yes, it should be when things will work as it need to.
> 
> But, for now, I have only limited subset of controls implemented in
> driver/firmware API, and supplicant/hostapd need to be updated as well
> to know about 60g. Now, hostapd won't call my start_ap. To be able to
> start AP now, I use something like:
> 
>  
> 
> ifconfig $WLAN down
> iw $WLAN set type __ap
> echo -n $SSID > /sys/class/net/$WLAN/device/attrs/ssid
> echo -n $SECURE > /sys/class/net/$WLAN/device/attrs/secure_pcp
> iw $WLAN set freq $FREQ
> sudo ifconfig $WLAN up $IP

This might be fine for experimentation, but I don't think it should go
upstream this way, see my comment above about hardware showing up etc.

johannes


  parent reply	other threads:[~2012-11-16 13:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 12:23 [PATCH v7 0/2] driver for 60g Wilocity chip wil6210 Vladimir Kondratiev
2012-11-13 12:23 ` [PATCH v7 1/2] wireless: Driver for 60GHz card wil6210 Vladimir Kondratiev
2012-11-13 13:06   ` Joe Perches
2012-11-13 21:44     ` Andrew Morton
2012-11-13 22:39       ` Joe Perches
2012-11-13 22:52         ` Andrew Morton
2012-11-14 12:21       ` Vladimir Kondratiev
2012-11-13 19:54   ` Johannes Berg
     [not found]     ` <16914852.FhZEtcXc7Y@lx-vladimir>
2012-11-16 13:40       ` Johannes Berg [this message]
2012-11-18 16:35         ` Vladimir Kondratiev
2012-11-13 12:23 ` [PATCH v7 2/2] wireless: integrate wil6210 driver into build structure Vladimir Kondratiev
2012-11-13 19:54   ` Johannes Berg
2012-11-13 23:23     ` Julian Calaby
     [not found]       ` <4652801.Xt8tN7pgs4@lx-vladimir>
2012-11-14  9:32         ` Johannes Berg
2012-11-14 13:48           ` Vladimir Kondratiev
     [not found]     ` <4396194.ZVOZT6GsHI@lx-vladimir>
2012-11-14  9:30       ` 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=1353073251.9490.17.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=qca_vkondrat@qca.qualcomm.com \
    --cc=rodrigue@qca.qualcomm.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 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.