Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-10 Thread Ryder Lee
On Mon, 2019-06-10 at 06:47 +0200, Sebastian Gottschall wrote: > okay. curious is, that my variant works with sane results too. > i will test your variant and check the results > > Sebastian Please don't top post as it's hard to track the thread. More specifically, IBRSSI is obtained from packet

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Sebastian Gottschall
okay. curious is, that my variant works with sane results too. i will test your variant and check the results Sebastian Am 10.06.2019 um 06:22 schrieb Ryder Lee: On Mon, 2019-06-10 at 10:09 +0800, Ryder Lee wrote: On Sun, 2019-06-09 at 16:44 +0200, Sebastian Gottschall wrote: according to my

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
On Mon, 2019-06-10 at 10:09 +0800, Ryder Lee wrote: > On Sun, 2019-06-09 at 16:44 +0200, Sebastian Gottschall wrote: > > according to my findings > > > > MT_RXV4_RCPI1 is part of rx descriptor 4 and not 3 > > so it must be rxdg4 = rxd[4] etc. > > RXV start from 1 in the code. > > That is: RXV1 <

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
On Sun, 2019-06-09 at 16:44 +0200, Sebastian Gottschall wrote: > according to my findings > > MT_RXV4_RCPI1 is part of rx descriptor 4 and not 3 > so it must be rxdg4 = rxd[4] etc. RXV start from 1 in the code. That is: RXV1 <-> rxdg0, RXV2 <-> rxdg1 ...so RXV4 <-> rxdg3 > however rxdg3 contain

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Sebastian Gottschall
according to my findings MT_RXV4_RCPI1 is part of rx descriptor 4 and not 3 so it must be rxdg4 = rxd[4] etc. however rxdg3 contains MT_RXV3_IB_RSSIRX which can be used for signal calculation. i already wrote a similar code for this driver which i sended to felix a long time ago. my variant lo

[PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
Fill in RX status->chain_signal to avoid empty value. Signed-off-by: Ryder Lee --- .../net/wireless/mediatek/mt76/mt7615/mac.c | 30 ++- .../net/wireless/mediatek/mt76/mt7615/mac.h | 5 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/