Felix Fietkau
6203d46fcc
mt7603: add support for setting transmit power
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-06 14:38:07 +01:00
Felix Fietkau
9d009be68d
mt7603: add dynamic sensitivity tuning based on false CCA events
...
This reduces sensitivity in cases where it could help throughput/stability.
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-05 18:26:20 +01:00
Felix Fietkau
80843237fa
mt7603: implement code for adjusting energy detect CCA thresholds
...
Ported from the reference driver.
Should fix compliance with ETSI rules on preventing transmission while
energy detect values are above the threshold.
Relax rules for non-ETSI regdomains
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-03 18:03:52 +01:00
Felix Fietkau
d22feb00e9
mt7603: move cab queue enabling to pre-tbtt tasklet
...
It is not necessary to time the start of the queue in software, the hardware
already does that for us.
Move all processing into the pre-tbtt tasklet to get rid of a race condition
that could happen when the pre-tbtt tasklet takes too long
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-28 22:15:31 +01:00
Felix Fietkau
c3efb5d899
mt7603: add support for detecting MT7688 and single stream devices
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-28 14:34:05 +01:00
Felix Fietkau
5fb60a7d7a
mt7603: fix aggregation size handling
...
Do not step over the 32 subframe limit.
Fix staying under the limit
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-21 19:04:19 +01:00
Felix Fietkau
b38fe7d531
mt7603: only issue PSE reset on PSE stuck
...
The reset can take quite a bit of time, so only issue it when necessary
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-21 15:04:47 +01:00
Felix Fietkau
b3f82a33c0
mt7603: report PSE reset failures via debugfs
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-21 13:18:28 +01:00
Felix Fietkau
c09e8a489f
mt7603: fix buffering of tx packets for powersave clients
...
Use PSE registers to loop back any pending tx packets for a client that
just went to sleep back into the MCU rx queue.
Re-queue those packets to the tx queue immediately after a client wakes up.
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-20 16:18:22 +01:00
Felix Fietkau
ca2c875ae6
mt7603: add support for accessing remapped registers via ops
...
Add wrappers for existing register ops
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-20 12:15:32 +01:00
Felix Fietkau
90e2c1b616
mt7603: add mt7603_wtbl_set_skip_tx, change mt7603_wtbl_set_ps users
...
Avoids unnecessary toggling of the MT_WTBL1_OR_PSM_WRITE flag
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-16 12:28:30 +01:00
Felix Fietkau
13f1e82f6f
mt7603: clear wtbl entry for removed stations
...
Should fix some issues with reassociating stations
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-16 12:09:52 +01:00
Felix Fietkau
a97127b1b3
mt76: replace sta_add/remove ops with common sta_state function
...
Allows adding unassociated stations from mac80211
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-16 12:09:52 +01:00
Felix Fietkau
e65ad4c5db
mt7603: make group_wcid the first member in struct mt7603_vif
...
Allows mt76 core to cast vif->drv_priv to struct mt76_wcid
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-16 12:09:52 +01:00
Felix Fietkau
75aa36e0a3
mt7603: use wcid/wcid_mask from struct mt76_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-13 11:51:49 +01:00
Felix Fietkau
417cf49ce8
mt7603: improve recovery from MCU hang
...
Fix forcing watchdog reset after a MCU hang
Run watchdog work immediately after a failed channel change
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-07 18:46:47 +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
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
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
Felix Fietkau
62ce3245da
move mt7603 source files to mt7603/
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-09-28 18:02:01 +02:00