265 Commits
Author SHA1 Message Date
Felix Fietkau a1afefdbf0 mt7603: fix handling of fixed rate packets
The FIXED_RATE flag of txd6 does not enable fixed rate, it only configures
the use of the fixed rate register as rate source.
Set the right flag in txd2 instead.

Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 17:42:10 +01:00
Felix Fietkau 498d716353 mt7603: fix checkpatch issues
Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 15:41:37 +01:00
Felix Fietkau d9b5324ecc mt7603: add SPDX license identifiers
Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 13:53:26 +01:00
Felix Fietkau ac6fc78aee mt7603: add debugfs file to trigger watchdog resets
Makes it easier to verify that the reset code is working properly

Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 13:39:41 +01:00
Felix Fietkau c34baabf3b mt7603: add missing unlock in case changing the channel fails
Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 13:35:32 +01:00
Felix Fietkau 87bad3a592 mt7603: stop MAC on watchdog reset
Prevent further rx activity while shutting down DMA and resetting PSE

Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 13:24:58 +01:00
Felix Fietkau 3c8e8a789b mt7603: use irq_lock/irqmask from struct mt76_dev
Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 12:24:48 +01:00
Felix Fietkau 01815e9ac2 mt7603: use mutex from struct mt76_dev
Signed-off-by: Felix Fietkau <[email protected]>
2018-11-06 12:21:50 +01:00
Felix Fietkau 5195257f22 mt7603: fix maximum rx frame size
Use 4096 as maximum size instead of the rx buffer size, since rx packets
can be split across multiple buffers. This fixes issues with receiving
A-MSDU aggregated packets.

Signed-off-by: Felix Fietkau <[email protected]>
2018-11-05 21:25:54 +01:00
Felix Fietkau ef06c3074f mt76: avoid queue/status spinlocks while passing tx status to mac80211
There is some code in the mac80211 tx status processing code that could
potentially call back into the tx codepath.
To avoid deadlocks, make sure that no tx related spinlocks are taken
during the ieee80211_tx_status call.

Signed-off-by: Felix Fietkau <[email protected]>
2018-11-05 21:11:42 +01:00
Felix Fietkau ed17ba23e8 mt7603: use common tx status handling code
Signed-off-by: Felix Fietkau <[email protected]>
2018-10-25 18:50:28 +02:00
Felix Fietkau 0b8b15f97c mt7603: use common mmio mcu struct
Signed-off-by: Felix Fietkau <[email protected]>
2018-10-25 12:58:51 +02:00
Lorenzo BianconiandFelix Fietkau 99e04864d9 mt76: use mt76x02_dev instead of mt76_dev in mt76x02_mmio.c
Use mt76x02_dev data structure as reference in mt76x02_mmio.c
instead of mt76_dev

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2018-10-05 20:03:54 +02:00
Felix Fietkau 14f70f4d28 mt7603: fix wcid for frames sent via drv_tx
pspoll responses can be sent via drv_tx, which may need to be encrypted

Signed-off-by: Felix Fietkau <[email protected]>
2018-09-29 13:11:45 +02:00
Felix Fietkau 62ce3245da move mt7603 source files to mt7603/
Signed-off-by: Felix Fietkau <[email protected]>
2018-09-28 18:02:01 +02:00