Commit Graph
89 Commits
Author SHA1 Message Date
Felix Fietkau afa61bcd61 mt76: implement AP_LINK_PS
With software A-MPDU reordering in place, frames that notify mac80211 of
powersave changes are reordered as well, which can cause connection
stalls. Fix this by implementing powersave state processing in the
driver.

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-30 10:35:36 +01:00
Felix Fietkau bd7f6e167e mt76: pass the per-vif wcid to the core for multicast rx
Preparation for adding software rx CCMP PN validation

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-30 10:33:41 +01:00
Felix Fietkau 91cc0d4734 Partially revert "mt7603: use mcu command to set timing registers, fix OFDM timeout values"
This reverts commit 268467b9a4.
It is unnecessary to go through the MCU for this.

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-30 10:23:03 +01:00
Felix Fietkau 41e6a04837 mt7603: make mt7603_mac_watchdog_reset() static
Signed-off-by: Felix Fietkau <[email protected]>
2017-12-03 21:45:43 +01:00
Felix Fietkau e7eaa7c09b mt7603: rename mt7603_mac_reset to mt7603_pse_reset
Signed-off-by: Felix Fietkau <[email protected]>
2017-12-03 21:45:43 +01:00
Felix Fietkau 82acc859fb mt7603: add missing include required on newer kernels
Signed-off-by: Felix Fietkau <[email protected]>
2017-12-03 21:45:43 +01:00
Felix Fietkau 7dfb354d3b mt76: increase rx ring size for mt76x2
Should improve performance under load

Signed-off-by: Felix Fietkau <[email protected]>
2017-11-16 20:34:45 +01:00
Felix Fietkau 0b7984e252 mt7603: remove unnecessary mcu register read function
Signed-off-by: Felix Fietkau <[email protected]>
2017-11-16 20:34:45 +01:00
Rosen PenevandFelix Fietkau 5e49aa933c Fix errors found by cppcheck
Mismatching declarations as well as unused results.

Signed-off-by: Rosen Penev <[email protected]>
2017-11-16 20:34:45 +01:00
Felix Fietkau 32eab505a4 mt7603: set wtbl entry vif index
Signed-off-by: Felix Fietkau <[email protected]>
2017-07-01 16:46:34 +02:00
Lorenzo BianconiandFelix Fietkau cf4ba12871 mt7603: avoid tx rate sampling using no retransmissions
Since the TXWI has no room for the MRR reconfigure the MT_WTBL registers
using the sample rate as first tx rate for channel probing avoiding
very low TCP performance in a lossy environment

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2017-06-26 14:06:56 +02:00
Felix Fietkau a85617295b mt7603: move enqueueing of mcu events to mt7603_mcu.c
Signed-off-by: Felix Fietkau <[email protected]>
2017-03-21 11:31:53 +01:00
Felix Fietkau 53c1b7f6ac update my email address
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-04 17:33:28 +02:00
Felix Fietkau ced81a3458 relicense to ISC (except for util.h which is based on GPL'd kernel code
Signed-off-by: Felix Fietkau <[email protected]>
2016-07-12 08:38:46 +02:00
Felix Fietkau 6c4b37be98 move dev->chandef to mt76 struct
Signed-off-by: Felix Fietkau <[email protected]>
2016-06-15 15:47:49 +02:00
Felix Fietkau 7059cc27df mt7603: fix tx status reporting
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-05 00:36:00 +01:00
Felix Fietkau 268467b9a4 mt7603: use mcu command to set timing registers, fix OFDM timeout values
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-05 00:16:10 +01:00
Felix Fietkau c5b46a88c2 mt7603: use indirect rate table update
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 21:49:36 +01:00
Felix Fietkau f34b842df6 mt7603: change hang detection code to detect any tx queue hang
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 20:18:36 +01:00
Felix Fietkau f466a62489 mt7603: add debugfs file to show MAC reset causes
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 15:41:05 +01:00
Felix Fietkau 43a868c68a mt7603: add timeout handling for status skbs
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 22:01:08 +01:00
Felix Fietkau fc412aab0d mt7603: use a skb queue for status queueing
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 21:40:11 +01:00
Felix Fietkau 0048598580 mt7603: add stuck beacon detection
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 20:47:17 +01:00
Felix Fietkau 0c9ff47107 mt7603: purge MCU response queue on exit
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 20:13:19 +01:00
Felix Fietkau 8038d39839 mt7603: reset MAC/DMA when starting wifi
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 15:42:55 +01:00
Felix Fietkau c190f15d6f mt7603: add basic mt7628 support
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 22:06:21 +01:00
Felix Fietkau 4dd3de777b mt7603: move module init to mt7603_main.c
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 22:06:21 +01:00
Felix Fietkau 72bd478b7d mt7603: add rx dma watchdog check
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau b8aea35d1d mt7603: add rx pse watchdog check
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau 2e6dcc48f1 mt7603: add another tx/rx watchdog check
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau 1c4c7adfc2 mt7603: reset PSE/MAC on init, clean up and fix PSE reset registers, re-enable watchdog
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau a30aebc985 mt7603: reset MAC on MCU errors
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau d365e4a12e mt7603: fix CAB queue scheduling
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 10:24:56 +01:00
Felix Fietkau d1610c641c mt7603: add code to recover from MAC/DMA hangs
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-27 19:47:00 +01:00
Felix Fietkau 32645cebe0 mt7603: control wtbl powersave mode flag in software
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-27 13:16:35 +01:00
Felix Fietkau 2cfb50f84d mt7603: pass the correct hardware queue index to the tx header
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-25 21:29:15 +01:00
Felix Fietkau 079ad90fe2 update copyright lines
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-25 18:09:13 +01:00
Felix Fietkau e6bc17ac24 mt7603: add initial code to configure beacon timers
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-25 17:23:47 +01:00
Felix Fietkau 65c0e3dccf mt7603: add mt7603_eeprom.c
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-22 08:27:32 +01:00
Felix Fietkau 87ccb64fef mt7603: implement hardware crypto support for unicast
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-20 20:24:38 +01:00
Felix Fietkau 424ea5d784 mt7603: fix double-free in tx status path
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 22:09:20 +01:00
Felix Fietkau 796c59fd18 mt7603: move mt7603_cb to prevent conflict with ampdu_len/ampdu_ack_len
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 21:34:55 +01:00
Felix Fietkau ecde4472ea mt7603: set up tx aggregation in wtbl2
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 21:03:46 +01:00
Felix Fietkau 583cb6eae3 mt7603: reset rx BA state on rx aggregation start
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 19:36:20 +01:00
Felix Fietkau 2b3abe580c mt7603: limit station wtbl entries to avoid conflict with vif/reserved
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 20:43:33 +01:00
Felix Fietkau 71eb2aa7d2 mt7603: save station rate table and use it for tx status information
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 20:40:32 +01:00
Felix Fietkau a9f8bcbe64 mt7603: set per-rate retry to 2
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 20:22:38 +01:00
Felix Fietkau 073d1d2491 mt7603: set sifs/slot timing registers
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 19:16:51 +01:00
Felix Fietkau e70b2f8281 mt7603: adjust timing registers
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 19:06:53 +01:00
Felix Fietkau 1c9710dcd1 mt7603: implement rudimentary skb tx status reporting
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-06 18:16:38 +01:00