cfg80211: add support for frequency interference event
PATCH v3 1/1 cfg80211: add support for frequency interference event
Add support for wireless driver to report frequency range(s) to be avoided because of interference. Wireless driver specifies source of interference for a given frequency range. For now, applicable source of interference is "cellular" only and other interference source types can be added later. If SoftAP/P2P-GO is operating on interfering frequency then user space should stop and restart them avoiding interfering frequency range(s). User space may decide to continue operation on interfering frequency, but in such case, there might be impact on performance.
--- include/net/cfg80211.h | 36 ++++++++++++++++++++++ include/uapi/linux/nl80211.h | 48 +++++++++++++++++++++++++++++ net/wireless/nl80211.c | 73 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+)
include/net/cfg80211.h +36 -0
@@ -1933,6 +1933,30 @@ struct cfg80211_update_ft_ies_params { };/** +* struct cfg80211_avoid_frequency_range - frequency range(s) to avoid +* +* This structure provides frequency range(s) that should be avoided +* because of interference. +* +* @interference_source: enum nl80211_freq_interference_source_type +* is used to specify source of interference. +* @start_freq: start of frequency range. Frequency is specified in +* KHz and is center frequency in 20 MHz channel bandwidth +* @end_freq: end of frequency range. Frequency is specified in KHz +* and is center frequency in 20 MHz channel bandwidth +*/ +struct cfg80211_avoid_frequency_range { +enum nl80211_freq_interference_source_type interference_source; +unsigned int start_freq; +unsigned int end_freq; +}; + +struct cfg80211_avoid_frequency_list { +unsigned int n_freq_ranges; +struct cfg80211_avoid_frequency_range *freq_range[0 ]; +}; + +/** * struct cfg80211_ops - backend description for wireless configuration * * This struct is registered by fullmac card drivers and/or wireless stacks
@@ -4349,6 +4373,18 @@ void cfg80211_ft_event(struct net_device *netdev, struct cfg80211_ft_event_params *ft_event);/** +* cfg80211_avoid_frequency_event - frequency interference event +* @netdev: network device +* @freq_list: frequency range(s) information +* @gfp: allocation flags +* +* Wireless driver calls this function to notify userspace about frequency +* range(s) that should be avoided because of interference. +*/ +void cfg80211_avoid_frequency_event (struct net_device *netdev, +struct cfg80211_avoid_frequency_list *freq_list,gfp_t gfp); + +/** * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer * @ies: the input IE buffer * @len: the input length
include/uapi/linux/nl80211.h +48 -0
78 lines not on this page · raw message
net/wireless/nl80211.c +73 -0
85 lines not on this page · raw message
Signature · 1 line
1.8.4
Quoted 11 lines · Rajesh Chauhan
Add support for wireless driver to report frequency range(s) to be avoided because of interference. Wireless driver specifies source of interference for a given frequency range. For now, applicable source of interference is "cellular" only and other interference source types can be added later. If SoftAP/P2P-GO is operating on interfering frequency then user space should stop and restart them avoiding interfering frequency range(s). User space may decide to continue operation on interfering frequency, but in such case, there might be impact on performance.
Signed-off-by Rajesh Chauhan <[email protected]>
Luis
SGkgSm9oYW5uZXMsDQoNCkNvdWxkIHlvdSBwbC4gbGV0IHVzIGtub3cgb2YgYW55IGZ1cnRoZXIg Y29tbWVudHMvZmVlZGJhY2sgb24gcGF0Y2ggc2V0IHYzPw0KDQpSZWdhcmRzLA0KUmFqZXNoIENo YXVoYW4NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IG1jZ3JvZkBnbWFpbC5j b20gW21haWx0bzptY2dyb2ZAZ21haWwuY29tXSBPbiBCZWhhbGYgT2YgTHVpcyBSLiBSb2RyaWd1 ZXoNClNlbnQ6IFRodXJzZGF5LCBOb3ZlbWJlciAxNCwgMjAxMyAxOjU0IEFNDQpUbzogQ2hhdWhh biwgUmFqZXNoDQpDYzogSm9oYW5uZXMgQmVyZzsgbGludXgtd2lyZWxlc3M7IE1hbGluZW4sIEpv dW5pOyBCQUhJTkksIEhlbnJpOyBKb2huc29uLCBKZWZmOyBDaGFuZywgTGVvOyBMdW8sIFh1bjsg VGhhbGFwcGlsLCBTYW1lZXI7IEh1c3NhaW4sIEFyaWYNClN1YmplY3Q6IFJlOiBbUEFUQ0h2M10g Y2ZnODAyMTE6IGFkZCBzdXBwb3J0IGZvciBmcmVxdWVuY3kgaW50ZXJmZXJlbmNlIGV2ZW50DQoN Ck9uIE1vbiwgTm92IDExLCAyMDEzIGF0IDg6MzIgUE0sIFJh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
maintainerQuoted 3 lines · Rajesh
Hi Johannes,
Could you pl. let us know of any further comments/feedback on patch set v3?
Trying to push me will make it likely that you get to drop to the bottom of the pile. I have more than one thing to look at, as you may have noticed.
johannes
Johannes Berg
maintainerQuoted 2 lines · Rajesh Chauhan
+ * This structure provides frequency range(s) that should be avoided
+ * because of interference.
extra tab that should be a space only
Quoted 2 lines
+ * @interference_source: enum
nl80211_freq_interference_source_type
+ * is used to specify source of interference.
Do we expect that different sources would be treated differently? If not, what use is this?
Quoted 4 lines
+ * @start_freq: start of frequency range. Frequency is specified in
+ * KHz and is center frequency in 20 MHz channel bandwidth
+ * @end_freq: end of frequency range. Frequency is specified in KHz
+ * and is center frequency in 20 MHz channel bandwidth
Why would those be required to be center frequencies of some wireless channels? That doesn't make much sense, e.g. if you have raw interference data from a modem, no?
include/net/cfg80211.h void cfg80211_ft_event(struct net_device *netdev, · line 4385
Quoted 11 lines
/**
+ *cfg80211_avoid_frequency_event- frequency interference event
+ * @netdev: network device
+ * @freq_list: frequency range(s) information
+ * @gfp: allocation flags
+ *
+ * Wireless driver calls this function to notify userspace about frequency
+ * range(s) that should be avoided because of interference.
+ */include/net/cfg80211.h +2
-0+void cfg80211_avoid_frequency_event (struct net_device *netdev, +struct cfg80211_avoid_frequency_list *freq_list,gfp_t gfp);
Indentation. Also, that freq_list parameter should probably be const?
Quoted 4 lines
+ * @NL80211_CMD_AVOID_FREQUENCIES_EVENT: Send range(s) of interfering
+ * frequencies that should be avoided, from the wireless driver to the
+ * user space. If SoftAP/P2P-GO is operating on interfering frequency
+ * then user space should stop and resart them avoiding interfering
typo: restart
Quoted 3 lines
+ * frequency range(s). User space may decide to continue operation on
+ * interfering frequency, but in such case, there might be impact on
+ * performance.
Also, I think describing policy here ("userspace should stop and restart") is wrong. This should be up to userspace. It could alternatively do a real CSA for example.
Quoted 2 lines
+ * @NL80211_ATTR_AVOID_FREQUENCIES: Avoid frequencies container information
That should probably describe in more detail how the information in it is formatted.
Quoted 4 lines
+/**,
+ * enumnl80211_avoid_frequency_attr- avoid frequency attributes
+ * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved
+ * @NL80211_AVOID_FREQUENCY_ATTR_INTERFERENCE_SOURCE_TYPE: interference
Quoted 8 lines
+ * source
+ * @NL80211_AVOID_FREQUENCY_ATTR_START_FREQ: Start of frequency range.
+ * Frequency is specified in KHz and is center frequency in 20 MHz
+ * channel bandwidth.
+ * @NL80211_AVOID_FREQUENCY_ATTR_END_FREQ: End of frequency range.
+ * Frequency is specified in KHz and is center frequency in 20 MHz
+ * channel bandwidth.
+ * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
missing docs for the other remaining enum members
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11239
Quoted 2 lines
net/wireless/nl80211.c +2
-0+void cfg80211_avoid_frequency_event (struct net_device *netdev, +struct cfg80211_avoid_frequency_list *freq_list,gfp_t gfp)
indentation
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11246
Quoted 6 lines
net/wireless/nl80211.c +6
-0+struct wiphy *wiphy; +struct cfg80211_registered_device *rdev; +struct sk_buff *msg; +void *hdr; +struct nlattr *nl_ranges, *nl_range; +int err = -EINVAL ;
wtf? that value is never used - don't randomly initialize variables. Is the variable itself even used?
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11271
Quoted 9 lines
net/wireless/nl80211.c +9
-0+ hdr =nl80211hdr_put (msg,0 ,0 ,0 ,NL80211_CMD_AVOID_FREQUENCIES_EVENT ); +if (!hdr) { +nlmsg_free (msg); +return ; + } + +if (nla_put_u32 (msg,NL80211_ATTR_WIPHY , rdev->wiphy_idx) || +nla_put_u32 (msg,NL80211_ATTR_IFINDEX , netdev->ifindex)) + goto nla_put_failure;
wdev index is missing, however, see above.
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11278
Quoted 2 lines
net/wireless/nl80211.c +2
-0+for (i =0 ; i < freq_list->n_freq_ranges; i++) { + nl_range =nla_nest_start (msg, i);
0 is invalid, I'm pretty sure.
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11301
Quoted 2 lines
net/wireless/nl80211.c +2
-0+genlmsg_multicast_netns (wiphy_net (&rdev->wiphy), msg,0 , + nl80211_mlme_mcgrp.id, gfp);
This is no longer the right API
johannes
Johannes Berg
maintainerQuoted 5 lines · Johannes Berg
net/wireless/nl80211.c void cfg80211_ft_event(struct net_device *netdev, · line 11271
Quoted 3 lines
net/wireless/nl80211.c +3
-0+if (nla_put_u32 (msg,NL80211_ATTR_WIPHY , rdev->wiphy_idx) || +nla_put_u32 (msg,NL80211_ATTR_IFINDEX , netdev->ifindex)) + goto nla_put_failure;wdev index is missing, however, see above.
Forgot add the "see above" part, so I'll just put it here:
I don't think this API makes sense per netdev.
johannes
Quoted 5 lines · Johannes Berg
Quoted 2 lines
+ * @interference_source: enum
nl80211_freq_interference_source_type
+ * is used to specify source of interference.Do we expect that different sources would be treated differently? If not, what use is this?
That was because of my nagging, without such a field the type of interference would be completely ambiguous and we'd have no users on the Linux kernel of this API, making anyone wonder WTF this is used for, except for those poking on some random non upstream driver. Additionally from a technical perspective having this information is purely informative at this point given that hostapd would be expected to be treating the cellular based source of interference as avoidance hints. It does leave open, for example, drivers with other types of future sources of advisories to simply piggy on top of this when the source of interference is coming from the 802.11 devices somehow.
Luis
Johannes Berg
maintainerQuoted 10 lines · Luis R. Rodriguez
Quoted 5 lines · Johannes Berg
Quoted 2 lines
+ * @interference_source: enum
nl80211_freq_interference_source_type
+ * is used to specify source of interference.Do we expect that different sources would be treated differently? If not, what use is this?
That was because of my nagging, without such a field the type of interference would be completely ambiguous and we'd have no users on the Linux kernel of this API,
Wait, we have no users for this API? Forget it then - I thought you were going to post a patch soon. I guess I should have learned by now not to trust QCA with this.
I'll drop this until I see a patch using it.
Quoted 8 lines
making anyone wonder WTF this is used
for, except for those poking on some random non upstream driver. Additionally from a technical perspective having this information is purely informative at this point given that hostapd would be expected to be treating the cellular based source of interference as avoidance hints. It does leave open, for example, drivers with other types of future sources of advisories to simply piggy on top of this when the source of interference is coming from the 802.11 devices somehow.
I think we could also just document the kind of things it should be used for, rather than having a useless (and potentially fake, since nobody cares) value.
johannes
Johannes Berg
maintainerQuoted 12 lines · Johannes Berg
Quoted 10 lines · Luis R. Rodriguez
Quoted 5 lines · Johannes Berg
Quoted 2 lines
+ * @interference_source: enum
nl80211_freq_interference_source_type
+ * is used to specify source of interference.Do we expect that different sources would be treated differently? If not, what use is this?
That was because of my nagging, without such a field the type of interference would be completely ambiguous and we'd have no users on the Linux kernel of this API,
Quoted 5 lines
Wait, we have no users for this API? Forget it then - I thought you were going to post a patch soon. I guess I should have learned by now not to trust QCA with this.
I'll drop this until I see a patch using it.
You can see this as a carrot (or stick, depending on how you look at it) for upstreaming the driver that wants it.
johannes
SGVsbG8gSm9oYW5uZXMsDQoNClBsZWFzZSBhbGxvdyBtZSB0byBjbGFyaWZ5IGhlcmUuIA0KDQpT byB0aGUgZmllbGQgImludGVyZmVyZW5jZV9zb3VyY2UiICBpbiB0aGUgc3RydWN0ICJjZmc4MDIx MV9hdm9pZF9mcmVxdWVuY3lfcmFuZ2UiIGlzIG5vdCBiZWluZyBlZmZlY3RpdmVseSB1c2VkIGN1 cnJlbnRseS4gVGhhdCBmaWVsZCB3YXMgYWRkZWQgcGVyIHN1Z2dlc3Rpb24gZnJvbSBMdWlzIGZv ciBmdXR1cmUgdXNlLiBCdXQgaWYgeW91IGFyZSBhZHZpc2luZyB0byByZW1vdmUgaXQgdGhlbiB5 ZXMgd2UgY2FuIHJlbW92ZSB0aGF0IGZpZWxkLg0KDQpUaGUgQVBJIGNmZzgwMjExX2F2b2lkX2Zy ZXF1ZW5jeV9ldmVudCgpIHdoaWNoIGlzIGludHJvZHVjZWQgaW4gdGhpcyBwYXRjaCBzaGFsbCBi ZSB1c2VkIGJ5IG91ciBXTEFOIGRyaXZlciB3aGljaCBpcyBhbiBvcGVuIHNvd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dG8gdHJ1c3QgUUNBIHdpdGggdGhpcy4NCj4g DQo+IEknbGwgZHJvcCB0aGlzIHVudGlsIEkgc2VlIGEgcGF0Y2ggdXNpbmcgaXQuDQoNCllvdSBj YW4gc2VlIHRoaXMgYXMgYSBjYXJyb3QgKG9yIHN0aWNrLCBkZXBlbmRpbmcgb24gaG93IHlvdSBs b29rIGF0IGl0KSBmb3IgdXBzdHJlYW1pbmcgdGhlIGRyaXZlciB0aGF0IHdhbnRzIGl0Lg0KDQpq b2hhbm5lcw0KDQo=
Quoted 1 line · Rajesh
The API
cfg80211_avoid_frequency_event()which is introduced in this patch shall be used by our WLAN driver which is an open source driver.
Get your shit upstream. For fuck's sake.
Luis
THVpcy0NCiAgQ2FuIHdlIGJlIGEgYml0IHByb2Zlc3Npb25hbCBoZXJlIGFuZCBsaW1pdCB0aGUg ZGlzY3Vzc2lvbiB0byB0aGUgcGF0Y2ggdGhhdCB3ZSdyZSBpbnRyb2R1Y2luZy4NCiAgUmFqZXNo IGRvZXMgbm90IGRlY2lkZSB3aGVuIHRoZSBkcml2ZXIgZ2V0cyB1cCBzdHJlYW1lZC4gQ2FuIHdl IGdldCB0aGlzIGRpc2N1c3Npb24gb3V0c2lkZSBvZiB0aGUgY29udGV4dCBvZiB0aGlzIHBhdGNo Pw0KDQpUaGFua3MsDQotSGVucmkgDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTog bWNncm9mQGdtYWlsLmNvbSBbbWFpbHRvOm1jZ3JvZkBnbWFpbC5jb21dIE9uIEJlaGFsZiBPZiBM dWlzIFIuIFJvZHJpZ3Vleg0KU2VudDogRnJpZGF5LCBEZWNlbWJlciAyMCwgMjAxMyAxMjoxMiBB TQ0KVG86IENoYXVoYW4sIFJhamVzaA0KQ2M6IEpvaGFubmVzIEJlcmc7IGxpbnV4LXdpcmVsZXNz OyBNYWxpbmVuLCBKb3VuaTsgQkFISU5JLCBIZW5yaTsgSm9obnNvbiwgSmVmZjsgQ2hhbmcsIExl bzsgTHVvLCBYdW47IFRoYWxhcHBpbCwgU2FtZWVyOyBIdXNzYWluLCBBcmlmDQpTdWJqZWN0OiBS ZTogW1BBVENIdjNdIGNmZzgwMjExOiBhZGQgc3VwcG9ydCBmb3IgZnJlcXVlbmN5IGludGVyZmVy ZW5jZSBldmVudA0KDQpPbiBUaHUsIERlYyAxOSwgMjAxMyBhdCAxMTo0NCBQTSwgQ2hhdWhhbiwg UmFqZXNoIDxyYWplc2hjQHFjYS5xdWFsY29tbS5jb20+IHdyb3RlOg0KPiBUaGUgQVBJIGNmZzgw MjExX2F2b2lkX2ZyZXF1ZW5jeV9ldmVudCgpIHdoaWNoIGlzIGludHJvZHVjZWQgaW4gdGhpcyBw YXRjaCBzaGFsbCBiZSB1c2VkIGJ5IG91ciBXTEFOIGRyaXZlciB3aGljaCBpcyBhbiBvcGVuIHNv dXJjZSBkcml2ZXIuDQoNCkdldCB5b3VyIHNoaXQgdXBzdHJlYW0uIEZvciBmdWNrJ3Mgc2FrZS4N Cg0KICBMdWlzDQo=
Quoted 3 lines · Henri
Luis-
Can we be a bit professional here and limit the discussion to the patch that we're introducing. Rajesh does not decide when the driver gets up streamed.
Let's be professional. Who the fuck decides to try to introduce APIs for shit for drivers that are not upstream ?
Quoted 1 line
Can we get this discussion outside of the context of this patch?
What type of serious effort are you putting into getting your driver upstream? Otherwise it seems to me like a waste of my and other's own time for review.
Luis
UGxlYXNlIGRvIGVkdWNhdGUgdXMgYSBiaXQhDQpXZSB3ZXJlIG5vdCBhd2FyZSBvZiB0aGUgcmVx dWlyZW1lbnQgdGhhdCBhbGwgcGF0Y2hlcyBjb250cmlidXRpb25zIHRvIHRoZSBjZmcvbmwgaGF2 ZSB0byBiZSBmb3IgZHJpdmVyIHRoYXQgYXJlIGFscmVhZHkgdXAgc3RyZWFtZWQuDQoNCkFzIGZv ciBvdXIgZWZmb3J0IGZvciB1cHN0cmVhbWluZyBvdXIgZHJpdmVyLCB3ZSBzaG91bGQg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ZXQncyBiZSBwcm9mZXNzaW9u YWwuIFdobyB0aGUgZnVjayBkZWNpZGVzIHRvIHRyeSB0byBpbnRyb2R1Y2UgQVBJcyBmb3Igc2hp dCBmb3IgZHJpdmVycyB0aGF0IGFyZSBub3QgdXBzdHJlYW0gPw0KDQo+ICBDYW4gd2UgZ2V0IHRo aXMgZGlzY3Vzc2lvbiBvdXRzaWRlIG9mIHRoZSBjb250ZXh0IG9mIHRoaXMgcGF0Y2g/DQoNCldo YXQgdHlwZSBvZiBzZXJpb3VzIGVmZm9ydCBhcmUgeW91IHB1dHRpbmcgaW50byBnZXR0aW5nIHlv dXIgZHJpdmVyIHVwc3RyZWFtPyBPdGhlcndpc2UgaXQgc2VlbXMgdG8gbWUgbGlrZSBhIHdhc3Rl IG9mIG15IGFuZCBvdGhlcidzIG93biB0aW1lIGZvciByZXZpZXcuDQoNCiAgTHVpcw0K
Quoted 3 lines · Henri
Please do educate us a bit!
We were not aware of the requirement that all patches contributions to the cfg/nl have to be for driver that are already up streamed.
Its not and this will depend on the driver / approach / and intent but it does help.
Quoted 2 lines
As for our effort for upstreaming our driver, we should take this out of this context since there are factors driving this that are completely orthogonal to this discussion.
That's true but it makes it harder for provide examples of the patches you are introducing. Typically we just remove code that's unused. If you have no intent on upstreaming then what's the point of doing tons of review and consideration on API that we deeply care of for userspace? The patch is debatable as-is already, I've provided my feedback on it before and if you don't get good feedback from others and also if some of this is because you are not upstreaming then I'm trying to highlight for you that perhaps that should be of a little more importance to you.
Luis
SSBkbyBhcHByZWNpYXRlIHlvdXIgZmVlZGJhY2sgYW5kIHVuZGVyc3RhbmRpbmcsIEx1aXMuDQoN ClBsZWFzZSBjb25zaWRlciB0aGF0IHRoZSB3Y24zNnh4IGRyaXZlciB0aGF0IGlzIGFscmVhZHkg dXAgc3RyZWFtZWQgd2lsbCBtYWtlIHVzZWQgb2YgdGhpcyBBUEkgaW4gZHVlIGNvdXJzZTogaXQg aXMgYWxyZWFkeSBpbiB0aGUgcGxhbm5pbmcgaW4gdGhlIGNvdXJzZSBvZiBmaXJzdCBoYWxmIG9m IG5leHQgeWVhciBhcyB3ZSBpbnRlbnNpZnkgdGhlIHB1c2ggb2Ygc29tZSBvZiBvdXIgZmVhdHVy ZXMgdG8gdGhpcyBkcml2ZXIuDQpQbGVhc2UgYWxzbyBjb25zaWRlciB0aGF0IHRoZSBjb3JyZXNw b25kaW5nIGNoYW5nZXMgaW4gdGhlIHN1cHBsaWNhbnQgd2lsbCBiZSBwaWNrZWQgdXAgYnkgSm91 bmkncyB0cmVlIGFzIHNvb24gYXMgdGhpcyBjZmc4MDIxMSBBUEkgaXMgdXAgc3RyZWFtZWQuIEpv dW5pIGNhbiB2b3VjaCBmb3IgdGhpcy4NCg0KV2l0aCBhYm92ZSwgSSBhcHByZWNpYXRlIHlvdSBn dXlzIGNvbnNpZGVyaW5nIHRoaXMgQVBJLg0KDQpUaGFua3MsDQotSGVucmkgDQo=
Johannes Berg
maintainerQuoted 3 lines · Henri
Please do educate us a bit!
We were not aware of the requirement that all patches contributions to the cfg/nl have to be for driver that are already up streamed.
You're adding code that needs to be maintained, thought about when changing other things, etc. I don't see why we as the community should shoulder that burden if you're not even willing to upstream the code using it. It feels like you're just dumping code that you happen to need today over the wall.
We've never really had to even consider this situation because you're the first to actively work on cfg80211/nl80211 while apparently not even thinking about upstreaming your driver!
johannes