linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability
@ 2012-11-10  1:51 Bing Zhao
  2012-11-12  9:31 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Bing Zhao @ 2012-11-10  1:51 UTC (permalink / raw)
  To: linux-wireless
  Cc: Johannes Berg, Jouni Malinen, John W. Linville, Amitkumar Karwar,
	Bing Zhao

From: Amitkumar Karwar <akarwar@marvell.com>

wpa_supplicant will do OBSS scan for drivers that implement
auth/assoc API. Drivers that implement nl80211 connect API
(rather than auth/assoc) may need wpa_supplicant to do this
as well.

New flag is added to inform userspace that this driver will
make use of wpa_supplicant's OBSS scan feature.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
---
v2: change flag documentation and commit log to be more specific
    (Johannes Berg)

 include/uapi/linux/nl80211.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index cbd2d6b..8ee60c8 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -3057,6 +3057,9 @@ enum nl80211_ap_sme_features {
  * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported
  * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif
  * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting
+ * @NL80211_FEATURE_OBSS_SCAN_OFFLOAD: The driver expects user space to
+ *	perform OBSS scan and generate 20/40 BSS coex reports. This flag is
+ *	interested in only in the case of a driver that has connect API.
  */
 enum nl80211_feature_flags {
 	NL80211_FEATURE_SK_TX_STATUS			= 1 << 0,
@@ -3069,6 +3072,7 @@ enum nl80211_feature_flags {
 	NL80211_FEATURE_SCAN_FLUSH			= 1 << 7,
 	NL80211_FEATURE_AP_SCAN				= 1 << 8,
 	NL80211_FEATURE_VIF_TXPOWER			= 1 << 9,
+	NL80211_FEATURE_OBSS_SCAN_OFFLOAD		= 1 << 10,
 };
 
 /**
-- 
1.8.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability
  2012-11-10  1:51 [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability Bing Zhao
@ 2012-11-12  9:31 ` Johannes Berg
  2012-11-12 11:17   ` Jouni Malinen
  2012-11-12 21:38   ` Bing Zhao
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Berg @ 2012-11-12  9:31 UTC (permalink / raw)
  To: Bing Zhao
  Cc: linux-wireless, Jouni Malinen, John W. Linville, Amitkumar Karwar

On Fri, 2012-11-09 at 17:51 -0800, Bing Zhao wrote:
> From: Amitkumar Karwar <akarwar@marvell.com>
> 
> wpa_supplicant will do OBSS scan for drivers that implement
> auth/assoc API. Drivers that implement nl80211 connect API
> (rather than auth/assoc) may need wpa_supplicant to do this
> as well.
> 
> New flag is added to inform userspace that this driver will
> make use of wpa_supplicant's OBSS scan feature.

> + * @NL80211_FEATURE_OBSS_SCAN_OFFLOAD: The driver expects user space to
> + *	perform OBSS scan and generate 20/40 BSS coex reports. This flag is
> + *	interested in only in the case of a driver that has connect API.

Applied, but I changed a lot ;-)

Notably, I reworded the constant name to be
NL80211_FEATURE_NEED_OBSS_SCAN, since we typically use the term
"offload" to mean that the *device* does something, not to mean that
*userspace* does something.

johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability
  2012-11-12  9:31 ` Johannes Berg
@ 2012-11-12 11:17   ` Jouni Malinen
  2012-11-12 11:42     ` Johannes Berg
  2012-11-12 21:38   ` Bing Zhao
  1 sibling, 1 reply; 5+ messages in thread
From: Jouni Malinen @ 2012-11-12 11:17 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Bing Zhao, linux-wireless, John W. Linville, Amitkumar Karwar

On Mon, Nov 12, 2012 at 10:31:37AM +0100, Johannes Berg wrote:
> On Fri, 2012-11-09 at 17:51 -0800, Bing Zhao wrote:
> > From: Amitkumar Karwar <akarwar@marvell.com>
> > 
> > wpa_supplicant will do OBSS scan for drivers that implement
> > auth/assoc API. Drivers that implement nl80211 connect API
> > (rather than auth/assoc) may need wpa_supplicant to do this
> > as well.

> Applied, but I changed a lot ;-)
> 
> Notably, I reworded the constant name to be
> NL80211_FEATURE_NEED_OBSS_SCAN, since we typically use the term
> "offload" to mean that the *device* does something, not to mean that
> *userspace* does something.

Sorry for being a bit late with my comments, but does this single flag
really cover expected use cases? I would assume that number of more full
MAC -like designs will have to move to separate auth/assoc commands
instead of using connect API in the future (e.g., for FT and SAE).
However, those drivers do not necessarily expect user space to take care
of OBSS scans. I understand that this is not currently supported since
wpa_supplicant assuming auth/assoc to mean user space SME, but it should
be kept in mind that that may need to change in the future..

I guess we can handle the auth/assoc without user space OBSS scan
separately (a new feature flag for stopping OBSS scan?), so I'm fine
with this patch moving ahead as-is.

-- 
Jouni Malinen                                            PGP id EFC895FA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability
  2012-11-12 11:17   ` Jouni Malinen
@ 2012-11-12 11:42     ` Johannes Berg
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2012-11-12 11:42 UTC (permalink / raw)
  To: Jouni Malinen
  Cc: Bing Zhao, linux-wireless, John W. Linville, Amitkumar Karwar

On Mon, 2012-11-12 at 13:17 +0200, Jouni Malinen wrote:

> Sorry for being a bit late with my comments, but does this single flag
> really cover expected use cases? I would assume that number of more full
> MAC -like designs will have to move to separate auth/assoc commands
> instead of using connect API in the future (e.g., for FT and SAE).
> However, those drivers do not necessarily expect user space to take care
> of OBSS scans. I understand that this is not currently supported since
> wpa_supplicant assuming auth/assoc to mean user space SME, but it should
> be kept in mind that that may need to change in the future..
> 
> I guess we can handle the auth/assoc without user space OBSS scan
> separately (a new feature flag for stopping OBSS scan?), so I'm fine
> with this patch moving ahead as-is.

Right, I don't see any other choice anyway given that we need to be
backward compatible. I kinda scratched the surface of this previously
when I said mac80211 could set the new flag, but then I don't see how to
detect that it's explicitly not set vs. being an older kernel.

johannes



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability
  2012-11-12  9:31 ` Johannes Berg
  2012-11-12 11:17   ` Jouni Malinen
@ 2012-11-12 21:38   ` Bing Zhao
  1 sibling, 0 replies; 5+ messages in thread
From: Bing Zhao @ 2012-11-12 21:38 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linux-wireless@vger.kernel.org, Jouni Malinen, John W. Linville,
	Amitkumar Karwar

SGkgSm9oYW5uZXMsDQoNCj4gPiBGcm9tOiBBbWl0a3VtYXIgS2Fyd2FyIDxha2Fyd2FyQG1hcnZl
bGwuY29tPg0KPiA+DQo+ID4gd3BhX3N1cHBsaWNhbnQgd2lsbCBkbyBPQlNTIHNjYW4gZm9yIGRy
aXZlcnMgdGhhdCBpbXBsZW1lbnQNCj4gPiBhdXRoL2Fzc29jIEFQSS4gRHJpdmVycyB0aGF0IGlt
cGxlbWVudCBubDgwMjExIGNvbm5lY3QgQVBJDQo+ID4gKHJhdGhlciB0aGFuIGF1dGgvYXNzb2Mp
IG1heSBuZWVkIHdwYV9zdXBwbGljYW50IHRvIGRvIHRoaXMNCj4gPiBhcyB3ZWxsLg0KPiA+DQo+
ID4gTmV3IGZsYWcgaXMgYWRkZWQgdG8gaW5mb3JtIHVzZXJzcGFjZSB0aGF0IHRoaXMgZHJpdmVy
IHdpbGwNCj4gPiBtYWtlIHVzZSBvZiB3cGFfc3VwcGxpY2FudCdzIE9CU1Mgc2NhbiBmZWF0dXJl
Lg0KPiANCj4gPiArICogQE5MODAyMTFfRkVBVFVSRV9PQlNTX1NDQU5fT0ZGTE9BRDogVGhlIGRy
aXZlciBleHBlY3RzIHVzZXIgc3BhY2UgdG8NCj4gPiArICoJcGVyZm9ybSBPQlNTIHNjYW4gYW5k
IGdlbmVyYXRlIDIwLzQwIEJTUyBjb2V4IHJlcG9ydHMuIFRoaXMgZmxhZyBpcw0KPiA+ICsgKglp
bnRlcmVzdGVkIGluIG9ubHkgaW4gdGhlIGNhc2Ugb2YgYSBkcml2ZXIgdGhhdCBoYXMgY29ubmVj
dCBBUEkuDQo+IA0KPiBBcHBsaWVkLCBidXQgSSBjaGFuZ2VkIGEgbG90IDstKQ0KPiANCj4gTm90
YWJseSwgSSByZXdvcmRlZCB0aGUgY29uc3RhbnQgbmFtZSB0byBiZQ0KPiBOTDgwMjExX0ZFQVRV
UkVfTkVFRF9PQlNTX1NDQU4sIHNpbmNlIHdlIHR5cGljYWxseSB1c2UgdGhlIHRlcm0NCj4gIm9m
ZmxvYWQiIHRvIG1lYW4gdGhhdCB0aGUgKmRldmljZSogZG9lcyBzb21ldGhpbmcsIG5vdCB0byBt
ZWFuIHRoYXQNCj4gKnVzZXJzcGFjZSogZG9lcyBzb21ldGhpbmcuDQoNClRoaXMgbWFrZXMgYSBs
b3QgbW9yZSBzZW5zZS4gVGhhbmtzIQ0KDQpJIHdpbGwgcmUtcG9zdCB0aGUgd3BhX3MgcGF0Y2gg
dG8gdXNlIHRoZSBuZXcgY29uc3RhbnQgbmFtZS4NCg0KVGhhbmtzLA0KQmluZw0KDQo=

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-12 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-10  1:51 [PATCH v2] nl/cfg80211: advertise OBSS scan offload capability Bing Zhao
2012-11-12  9:31 ` Johannes Berg
2012-11-12 11:17   ` Jouni Malinen
2012-11-12 11:42     ` Johannes Berg
2012-11-12 21:38   ` Bing Zhao

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).