Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: igor.mitsyanko.os@quantenna.com, linux-wireless@vger.kernel.org,
	Avinash Patil <avinashp@quantenna.com>,
	Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Subject: Re: [PATCH v6] qtnfmac: introduce new FullMAC driver for Quantenna chipsets
Date: Tue, 23 May 2017 00:04:46 +0300	[thread overview]
Message-ID: <20170522210445.bj3zlyc4stjmojf5@bars> (raw)
In-Reply-To: <1495434501.2653.7.camel@sipsolutions.net>

> > - reply to action frames rejected by userspace tools
> >   in the same way as it is done by mac80211
> 
> I think you're probably thinking of the right thing, but just to
> clarify:
>  * if userspace decides to send a reject frame (0x80|action) then
>    that's just a regular mgmt-TX, nothing special about that
>  * if the cfg80211_rx_mgmt() *function* returns saying it wasn't
>    handled, that's just cfg80211 doing it due to the filters - then
>    there's no userspace code involved
> 
> I think you were thinking of the latter case, and yes, just adding the
> few lines of code to send rejects for action frames would be
> sufficient.
Correct, this is the case.

> 
> > Adding reject code seems to be straightforward. Adding
> > NL80211_RXMGMT_FLAG_ANSWERED flag to firmware is a more involved
> > task. But it can be done gradually, from simple usecases to the
> > complicated ones. Besides, IIUC the support of this flag by userspace
> > tools is still a work in progress. E.g., hostapd is not yet using it,
> > so we keep using 'send_probe_response = 0' config option.
> 
> Yeah, like I said above, this whole thing isn't really fully thought
> out it seems. I'm not sure what you mean by "send_probe_response = 0"
> though.
Hostapd registers for acton frames and probe requests. In our case probe
responses are sent by firmware. However hostapd needs to look at them anyway
in certain usecases. Bug hostapd doesn't try to respond to probe requests
when option 'send_probe_response = 0' is set in hostapd config.

IIRC the idea was to use 'send_probe_response' for now and then to implement
the use of NL80211_RXMGMT_FLAG_ANSWERED flag in hostapd, at least for probe
requests for the start. But it definitely doesn't make sense if you
plan to get rid of this flag in the long run.

> > Does it make sense if I post an RFC patch modifying current interface
> > of mgmt_frame_register in cfg80211_ops to collect feedback ?
> 
> Sure. I think there are some complications, like what happens if you
> just pass this through to the firmware and then the firmware crashes,
> and you need to recover this state? Perhaps cfg80211 should have some
> state accessors ("iterate list of subscriptions") for this purpose. Of
> course that can be added later as well.
Ok

Regards,
Sergey

  reply	other threads:[~2017-05-22 21:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-11 21:51 [PATCH v6] qtnfmac: introduce new FullMAC driver for Quantenna chipsets igor.mitsyanko.os
2017-05-12 15:18 ` [v6] " Kalle Valo
2017-05-12 15:20   ` Kalle Valo
2017-05-12 15:43     ` Joe Perches
2017-05-12 16:37       ` Kalle Valo
2017-05-12 17:47         ` Igor Mitsyanko
2017-05-17 13:12 ` [PATCH v6] " Johannes Berg
2017-05-18 20:08   ` Sergey Matyukevich
2017-05-19 10:18     ` Johannes Berg
2017-05-21 17:08       ` Sergey Matyukevich
2017-05-22  6:28         ` Johannes Berg
2017-05-22 21:04           ` Sergey Matyukevich [this message]
2017-05-24  7:11             ` Johannes Berg
2017-05-24 11:08               ` Sergey Matyukevich
2017-05-22  9:09   ` Kalle Valo
2017-05-24 14:06 ` [v6] " Kalle Valo

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=20170522210445.bj3zlyc4stjmojf5@bars \
    --to=sergey.matyukevich.os@quantenna.com \
    --cc=avinashp@quantenna.com \
    --cc=igor.mitsyanko.os@quantenna.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=qca_vkondrat@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox