Re: A good way to get CSI info to user-space?

2017-10-25 Thread Zefir Kurtisi
On 10/25/2017 04:43 PM, Ben Greear wrote: > > > On 10/25/2017 07:30 AM, Zefir Kurtisi wrote: >> Hi Ben, >> >> On 10/24/2017 03:55 PM, Johannes Berg wrote: >>> On Tue, 2017-10-24 at 06:50 -0700, Ben Greear wrote: >>> [...] Anyone know if there is a useful way to stream events from debugfs

Re: A good way to get CSI info to user-space?

2017-10-25 Thread Ben Greear
On 10/25/2017 07:30 AM, Zefir Kurtisi wrote: Hi Ben, On 10/24/2017 03:55 PM, Johannes Berg wrote: On Tue, 2017-10-24 at 06:50 -0700, Ben Greear wrote: [...] Anyone know if there is a useful way to stream events from debugfs and/or sysfs w/out having to busy-poll on it? There's relayfs,

Re: A good way to get CSI info to user-space?

2017-10-25 Thread Zefir Kurtisi
Hi Ben, On 10/24/2017 03:55 PM, Johannes Berg wrote: > On Tue, 2017-10-24 at 06:50 -0700, Ben Greear wrote: > [...] >> Anyone know if there is a useful way to stream events from debugfs >> and/or sysfs w/out having to busy-poll on it? > > There's relayfs, which is kinda built for that. You could

Re: A good way to get CSI info to user-space?

2017-10-24 Thread Ben Greear
On 10/24/2017 06:55 AM, Johannes Berg wrote: On Tue, 2017-10-24 at 06:50 -0700, Ben Greear wrote: We keep having this discussion. You need to fix this, it should be really simple to fix this - just remove all checks for CONF_MONITOR from ath10k and make it use WANT_MONITOR_VIF instead if it

Re: A good way to get CSI info to user-space?

2017-10-24 Thread Johannes Berg
On Tue, 2017-10-24 at 06:50 -0700, Ben Greear wrote: > > We keep having this discussion. You need to fix this, it should be > > really simple to fix this - just remove all checks for CONF_MONITOR > > from ath10k and make it use WANT_MONITOR_VIF instead if it doesn't > > already. > > I don't

Re: A good way to get CSI info to user-space?

2017-10-24 Thread Ben Greear
On 10/24/2017 06:38 AM, Johannes Berg wrote: On Tue, 2017-10-24 at 06:36 -0700, Ben Greear wrote: On 10/23/2017 10:54 PM, Johannes Berg wrote: On Mon, 2017-10-23 at 13:59 -0700, Ben Greear wrote: The CSI data has variable length [1] but it's fundamentally always tied to a specific frame

Re: A good way to get CSI info to user-space?

2017-10-24 Thread Johannes Berg
On Tue, 2017-10-24 at 06:36 -0700, Ben Greear wrote: > > On 10/23/2017 10:54 PM, Johannes Berg wrote: > > On Mon, 2017-10-23 at 13:59 -0700, Ben Greear wrote: > > > > > > The CSI data has variable length [1] but it's fundamentally always tied > > > > to a specific frame and as such we've always

Re: A good way to get CSI info to user-space?

2017-10-24 Thread Ben Greear
On 10/23/2017 10:54 PM, Johannes Berg wrote: On Mon, 2017-10-23 at 13:59 -0700, Ben Greear wrote: The CSI data has variable length [1] but it's fundamentally always tied to a specific frame and as such we've always attached it to that frame using a radiotap vendor namespace. You can easily

Re: A good way to get CSI info to user-space?

2017-10-23 Thread Johannes Berg
On Mon, 2017-10-23 at 13:59 -0700, Ben Greear wrote: > > The CSI data has variable length [1] but it's fundamentally always tied > > to a specific frame and as such we've always attached it to that frame > > using a radiotap vendor namespace. > > > > You can easily implement that in a mac80211

Re: A good way to get CSI info to user-space?

2017-10-23 Thread Ben Greear
On 10/23/2017 01:30 PM, Johannes Berg wrote: Hi, I have been poking at ath10k to get some CSI reporting working. The CSI reports are a bit over 2k bytes in length, and they could happen quite often. As far as I can tell, there is no good way in the kernel to make this available. I was

Re: A good way to get CSI info to user-space?

2017-10-23 Thread Johannes Berg
Hi, > I have been poking at ath10k to get some CSI reporting working. > The CSI reports are a bit over 2k bytes in length, and they could > happen quite often. As far as I can tell, there is no good way in > the kernel to make this available. > > I was thinking maybe a callback into the

A good way to get CSI info to user-space?

2017-10-23 Thread Ben Greear
Hello, I have been poking at ath10k to get some CSI reporting working. The CSI reports are a bit over 2k bytes in length, and they could happen quite often. As far as I can tell, there is no good way in the kernel to make this available. I was thinking maybe a callback into the mac80211 stack,