* [PATCH] nl/cfg80211: advertise OBSS scan offload capability
@ 2012-11-08 22:54 Bing Zhao
2012-11-09 16:29 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Bing Zhao @ 2012-11-08 22:54 UTC (permalink / raw)
To: linux-wireless
Cc: Johannes Berg, Jouni Malinen, John W. Linville, Amitkumar Karwar,
Bing Zhao
From: Amitkumar Karwar <akarwar@marvell.com>
New flag is added to inform userspace that this driver doesn't
internally perform OBSS scan. It can use this feature available
in userspace application.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
---
include/uapi/linux/nl80211.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index cbd2d6b..97c096c 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -3057,6 +3057,8 @@ 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: This driver expects user space to perform
+ * OBSS scan and generate 20/40 BSS coex reports.
*/
enum nl80211_feature_flags {
NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
@@ -3069,6 +3071,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] nl/cfg80211: advertise OBSS scan offload capability
2012-11-08 22:54 [PATCH] nl/cfg80211: advertise OBSS scan offload capability Bing Zhao
@ 2012-11-09 16:29 ` Johannes Berg
2012-11-09 20:18 ` Bing Zhao
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2012-11-09 16:29 UTC (permalink / raw)
To: Bing Zhao
Cc: linux-wireless, Jouni Malinen, John W. Linville, Amitkumar Karwar
On Thu, 2012-11-08 at 14:54 -0800, Bing Zhao wrote:
> From: Amitkumar Karwar <akarwar@marvell.com>
>
> New flag is added to inform userspace that this driver doesn't
> internally perform OBSS scan. It can use this feature available
> in userspace application.
Shouldn't that be a little more precisely worded? Most drivers already
expect wpa_s to do this, but apparently the assumption was that without
the flag, full-MAC drivers, i.e. drivers implementing the nl80211
connect API (rather than auth/assoc) do it themselves?
Or maybe mac80211 should just set the flag?
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] nl/cfg80211: advertise OBSS scan offload capability
2012-11-09 16:29 ` Johannes Berg
@ 2012-11-09 20:18 ` Bing Zhao
2012-11-09 21:17 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Bing Zhao @ 2012-11-09 20:18 UTC (permalink / raw)
To: Johannes Berg
Cc: linux-wireless@vger.kernel.org, Jouni Malinen, John W. Linville,
Amitkumar Karwar
SGkgSm9oYW5uZXMsDQoNCj4gPiBGcm9tOiBBbWl0a3VtYXIgS2Fyd2FyIDxha2Fyd2FyQG1hcnZl
bGwuY29tPg0KPiA+DQo+ID4gTmV3IGZsYWcgaXMgYWRkZWQgdG8gaW5mb3JtIHVzZXJzcGFjZSB0
aGF0IHRoaXMgZHJpdmVyIGRvZXNuJ3QNCj4gPiBpbnRlcm5hbGx5IHBlcmZvcm0gT0JTUyBzY2Fu
LiBJdCBjYW4gdXNlIHRoaXMgZmVhdHVyZSBhdmFpbGFibGUNCj4gPiBpbiB1c2Vyc3BhY2UgYXBw
bGljYXRpb24uDQo+IA0KPiBTaG91bGRuJ3QgdGhhdCBiZSBhIGxpdHRsZSBtb3JlIHByZWNpc2Vs
eSB3b3JkZWQ/IE1vc3QgZHJpdmVycyBhbHJlYWR5DQo+IGV4cGVjdCB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kVSX0ZMQUdTX1NNRSkgfHwgc3NpZCA9PSBOVUxMIHx8DQor
ICAgICAgIGlmICghKHdwYV9zLT5kcnZfZmxhZ3MgJiBXUEFfRFJJVkVSX0ZMQUdTX09CU1NfU0NB
TikgfHwgc3NpZCA9PSBOVUxMIHx8DQogICAgICAgICAgICBzc2lkLT5tb2RlICE9IElFRUU4MDIx
MV9NT0RFX0lORlJBKQ0KICAgICAgICAgICAgICAgIHJldHVybjsgLyogTm90IHVzaW5nIHN0YXRp
b24gU01FIGluIHdwYV9zdXBwbGljYW50ICovDQoNClRoYW5rcywNCkJpbmcNCg0K
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] nl/cfg80211: advertise OBSS scan offload capability
2012-11-09 20:18 ` Bing Zhao
@ 2012-11-09 21:17 ` Johannes Berg
2012-11-09 22:40 ` Bing Zhao
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2012-11-09 21:17 UTC (permalink / raw)
To: Bing Zhao
Cc: linux-wireless@vger.kernel.org, Jouni Malinen, John W. Linville,
Amitkumar Karwar
On Fri, 2012-11-09 at 12:18 -0800, Bing Zhao wrote:
> > > New flag is added to inform userspace that this driver doesn't
> > > internally perform OBSS scan. It can use this feature available
> > > in userspace application.
> >
> > Shouldn't that be a little more precisely worded? Most drivers already
> > expect wpa_s to do this, but apparently the assumption was that without
> > the flag, full-MAC drivers, i.e. drivers implementing the nl80211
> > connect API (rather than auth/assoc) do it themselves?
>
> That's right.
>
> >
> > Or maybe mac80211 should just set the flag?
>
> Currently wpa_s checks WPA_DRIVER_FLAGS_SME flag for OBSS scan.
> Since WPA_DRIVER_FLAGS_SME bit is set for mac80211, it's unnecessary to set this new flag.
>
> Or, are you suggesting that we should set the new flag in mac80211
> (and all drivers that need OBSS scan feature in wpa_s) and replace
> WPA_DRIVER_FLAGS_SME check with the new flag?
I don't think that can be done, for the simple reason that wpa_s should
continue to work on older kernels.
Thus, I guess that wpa_s is going to continue with the assumption that
auth/assoc API implies also doing OBSS in wpa_s (which is a fair
assumption), but then I think we should simply change the documentation
of this new feature flag to indicate that it's interesting only in the
case of a driver that has connect API.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] nl/cfg80211: advertise OBSS scan offload capability
2012-11-09 21:17 ` Johannes Berg
@ 2012-11-09 22:40 ` Bing Zhao
0 siblings, 0 replies; 5+ messages in thread
From: Bing Zhao @ 2012-11-09 22:40 UTC (permalink / raw)
To: Johannes Berg
Cc: linux-wireless@vger.kernel.org, Jouni Malinen, John W. Linville,
Amitkumar Karwar
PiA+IEN1cnJlbnRseSB3cGFfcyBjaGVja3MgV1BBX0RSSVZFUl9GTEFHU19TTUUgZmxhZyBmb3Ig
T0JTUyBzY2FuLg0KPiA+IFNpbmNlIFdQQV9EUklWRVJfRkxBR1NfU01FIGJpdCBpcyBzZXQgZm9y
IG1hYzgwMjExLCBpdCdzIHVubmVjZXNzYXJ5IHRvIHNldCB0aGlzIG5ldyBmbGFnLg0KPiA+DQo+
ID4gT3IsIGFyZSB5b3Ugc3VnZ2VzdGluZyB0aGF0IHdlIHNob3VsZCBzZXQgdGhlIG5ldyBmbGFn
IGluIG1hYzgwMjExDQo+ID4gKGFuZCBhbGwgZHJpdmVycyB0aGF0IG5lZWQgT0JTUyBzY2FuIGZl
YXR1cmUgaW4gd3BhX3MpIGFuZCByZXBsYWNlDQo+ID4gV1BBX0RSSVZFUl9GTEFHU19TTUUgY2hl
Y2sgd2l0aCB0aGUgbmV3IGZsYWc/DQo+IA0KPiBJIGRvbid0IHRoaW5rIHRoYXQgY2FuIGJlIGRv
bmUsIGZvciB0aGUgc2ltcGxlIHJlYXNvbiB0aGF0IHdwYV9zIHNob3VsZA0KPiBjb250aW51ZSB0
byB3b3JrIG9uIG9sZGVyIGtlcm5lbHMuDQo+IA0KPiBUaHVzLCBJIGd1ZXNzIHRoYXQgd3BhX3Mg
aXMgZ29pbmcgdG8gY29udGludWUgd2l0aCB0aGUgYXNzdW1wdGlvbiB0aGF0DQo+IGF1dGgvYXNz
b2MgQVBJIGltcGxpZXMgYWxzbyBkb2luZyBPQlNTIGluIHdwYV9zICh3aGljaCBpcyBhIGZhaXIN
Cj4gYXNzdW1wdGlvbiksIGJ1dCB0aGVuIEkgdGhpbmsgd2Ugc2hvdWxkIHNpbXBseSBjaGFuZ2Ug
dGhlIGRvY3VtZW50YXRpb24NCj4gb2YgdGhpcyBuZXcgZmVhdHVyZSBmbGFnIHRvIGluZGljYXRl
IHRoYXQgaXQncyBpbnRlcmVzdGluZyBvbmx5IGluIHRoZQ0KPiBjYXNlIG9mIGEgZHJpdmVyIHRo
YXQgaGFzIGNvbm5lY3QgQVBJLg0KDQpPSy4gSSdsbCB1cGRhdGUgdGhlIGNvbW1lbnRzIGluIHYy
Lg0KDQpUaGFua3MsDQpCaW5nDQoNCg==
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-09 22:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 22:54 [PATCH] nl/cfg80211: advertise OBSS scan offload capability Bing Zhao
2012-11-09 16:29 ` Johannes Berg
2012-11-09 20:18 ` Bing Zhao
2012-11-09 21:17 ` Johannes Berg
2012-11-09 22:40 ` Bing Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox