aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/testmode.c
Commit message (Collapse)AuthorAgeFilesLines
* mt76: testmode: add support for HE rate modesShayne Chen2020-12-041-1/+5
| | | | | | | | Extend enum mt76_testmode_tx_mode to support various HE rate modes. Reviewed-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: testmode: add support for LTF and GI combinations for HE modeShayne Chen2020-12-041-1/+5
| | | | | | | | | Prepare for setting different LTF (1x, 2x, and 4x) and GI (0.8us, 1.6us, 3.2us) combinations in HE rate mode. Reviewed-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: testmode: add tx_rate_stbc parameterShayne Chen2020-12-041-0/+6
| | | | | | | | Add the parameter to control STBC function in testmode. Reviewed-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: convert from tx tasklet to tx worker threadFelix Fietkau2020-09-241-3/+3
| | | | | | | | | This improves performance by allowing the scheduler to move the tx scheduling work to idle CPUs. Since tx scheduling work is very latency sensitive and kept short via AQL, sched_set_fifo_low is used to keep worker priority above normal tasks Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: testmode: add a limit for queued tx_frames packetsFelix Fietkau2020-09-241-1/+2
| | | | | | This avoids running out of available tx tokens Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: remove struct mt76_sw_queueFelix Fietkau2020-09-241-1/+1
| | | | | | All members except for the struct mt76_queue pointer have been removed Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: fix a possible NULL pointer dereference in mt76_testmode_dumpLorenzo Bianconi2020-09-241-2/+6
| | | | | | | | | Fix a possible NULL pointer dereference in mt76_testmode_dump() since nla_nest_start returns NULL in case of error Fixes: f0efa8621550e ("mt76: add API for testmode support") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: add API for testmode supportFelix Fietkau2020-07-211-0/+497
This can be used for calibration in the manufacturing process. It supports sending a configurable number of packets with a specific rate and configurable tx power levels / antenna settings. It also supports receiving packets and showing some statistics, including packet counters and detailed RSSI information. It will only be compiled in if CONFIG_NL80211_TESTMODE is enabled Signed-off-by: Felix Fietkau <nbd@nbd.name>