Felix Fietkau
ea4c2a165a
mt7603: rename MT_PSE_RESET register
...
It is actually a dummy control register used for communicating reset
state with the MCU firmware
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
Lorenzo Bianconi and Felix Fietkau
21f20b46e3
mt7603: mac: fix register configuration in mt7603_rx_dma_busy()
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-09-09 17:45:15 +02:00
Lorenzo Bianconi and Felix Fietkau
cb83f3329f
mt7603: mac: fix logic in mt7603_tx_hang()
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-09-09 17:45:07 +02:00
Lorenzo Bianconi and Felix Fietkau
8dee788e05
mt7603: mac: stop netdev queues during watchdog reset
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-07-17 10:21:59 +02:00
Lorenzo Bianconi and Felix Fietkau
8a649c3b1e
mt7603: mac: code optimization
...
Remove unnecessary return instruction and time variable in
mt7603_mac_work()
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-07-15 10:30:56 +02:00
Lorenzo Bianconi and Felix Fietkau
e90a81a552
mt7603: fix channel width fall back in TXWI
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-07-04 10:55:39 +02:00
Felix Fietkau
c4e3deaa58
mt7603: use the real vif index in txwi header for normal tx.
...
Fixes rate control for multi-vif. Beacons and buffered multicast packets
still need the adjusted index
Signed-off-by: Felix Fietkau <[email protected] >
2017-07-01 16:53:18 +02: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 Bianconi and Felix 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
Lorenzo Bianconi and Felix Fietkau
01fb9ba096
mt7603: fix control/status retries count estimation
...
Refactor tx count computation for fixed_rate frames in status path
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-06-26 14:06:44 +02:00
Felix Fietkau
af326156d9
mt7603: change auto rate control register initialization
...
Allow the hardware to fall back if rates stop working, make the first
rate fail earlier.
Signed-off-by: Felix Fietkau <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
2017-06-26 14:06:31 +02:00
Felix Fietkau
219c8dc717
mt7603: fix endian issue in CCMP PN
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-05-26 09:40:49 +02:00
Felix Fietkau
b8a7d0729e
mt7603: fix rate update bw fallback index
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-05-26 08:59:00 +02:00
Felix Fietkau
7168d59902
mt7603: reset PSE queue hang indicator bits
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-21 14:47:01 +01:00
Felix Fietkau
38bae1d303
mt7603: improve reliability of the PSE reset
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-21 14:44:39 +01:00
Felix Fietkau
e2d298d071
mt7603: issue tx reset bit 2 before DMA reset
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-21 10:44:53 +01:00
Felix Fietkau
59ce2b491b
mt7603: set tx vif own MAC index (needed for beacons)
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-15 14:24:44 +01:00
Felix Fietkau
e54add55e0
mt7603: move napi/tasklet enable/disable outside of the locked section
...
Should help prevent deadlocks
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-15 14:24:42 +01:00
Felix Fietkau
da8e79696d
mt7603: check wtbl busy status and stop/start tx queues when clearing sta entry
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-15 14:24:40 +01:00
Felix Fietkau
dce8aac5c4
mt7603: fix endian issue in mt7603_mac_fill_rx
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-03-15 14:24:35 +01:00
Felix Fietkau
f8f49d2428
mt7603: return -EOPNOTSUPP on unsupported ciphers
...
Signed-off-by: Felix Fietkau <[email protected] >
2017-01-14 23:05:46 +01:00
Felix Fietkau
7ce4368c3d
mt7603: work around a compiler issue on accessing 802.11 header fields
...
For some reason the FIELD_GET call runs into a BUILD_BUG_ON on some
platforms when using the 802.11 frame type/subtype definitions.
Use mask and shift explicitly to work around this
Signed-off-by: Felix Fietkau <[email protected] >
2016-12-15 13:00:17 +01:00
Felix Fietkau
b300bdc42e
use the new bitfield accessor macros
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-09-04 17:37:26 +02: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
f30fa6c56c
mt7603: poll for rate update completion before setting sta->wcid.tx_rate_set for the first time
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-06-17 10:54:51 +02:00
Felix Fietkau
3c8a4bc30e
mt76x2: implement survey support
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-06-15 16:47:23 +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
13c29223ef
Use NL80211_BAND_2GHZ instead of IEEE80211_BAND_2GHZ
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-05-14 16:49:30 +02:00
Felix Fietkau
dd828b7fc6
mt7603: fix initialization of the rate fallback table
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-03-09 12:43:32 +01: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
7e47a25752
mt7603: wait for the WTBL to become available before updating it
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-03-04 15:15:53 +01:00
Felix Fietkau
b9ff4e6de9
mt7603: disable BA for packets using a CCK rate
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-03-04 12:42:03 +01:00
Felix Fietkau
a4d03c23a6
mt7603: fix PSE status check
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-03-04 12:41:00 +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
371bb8ce55
mt7603: do not request tx status for no-ack frames
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-03-03 21:51:17 +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
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
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
429864f233
mt7603: print a warning on MAC reset
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-28 11:14:27 +01:00