Felix Fietkau
3687eec55f
mt76: mt7603: clear the service period on releasing PS filtered packets
...
These packets have no txwi entry in the ring, so tracking via tx status does
not work. To prevent PS poll requests from being unanswered, end the service
period right away
Signed-off-by: Felix Fietkau <[email protected] >
2019-03-03 19:21:42 +01:00
Felix Fietkau
8bfe6d44ae
mt76: mt7603: clear ps filtering mode before releasing buffered frames
...
Fixes sending them, otherwise they loop back right into the buffer
Signed-off-by: Felix Fietkau <[email protected] >
2019-03-03 19:21:42 +01:00
Lorenzo Bianconi and Felix Fietkau
11ab62057e
mt7603: rely on mt76_tx_queue_skb_raw common routine
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2019-02-18 20:39:41 +01:00
Felix Fietkau
2afa0d7e7a
mt7603: remove WCID override for software encrypted frames
...
It is not necessary, since the hardware has a flag to indicate hardware
encryption offload
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-31 21:51:29 +01:00
Felix Fietkau
8027b5d061
mt7603: remove copyright headers
...
No longer needed because of SPDX License Identifier
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-31 18:30:30 +01:00
Felix Fietkau
0db925f076
mt7603: update HT/VHT capabilities after assoc
...
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-30 12:18:32 +01:00
Felix Fietkau
6eef33bfd5
mt7603: remove mt7603_txq_init
...
Simplify the code by open coding it in the only remaining caller
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-30 12:10:45 +01:00
Felix Fietkau
3df341d597
mt7603: avoid redundant MAC timing updates
...
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-21 15:04:37 +01:00
Felix Fietkau
79b337cfad
mt7603: move CF-End rate update to mt7603_mac_set_timing
...
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-21 15:03:19 +01:00
Felix Fietkau
b35cc8eefa
mt7603: set timing on channel change before starting MAC
...
MAC needs to be stopped/started for timing change anyway
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-21 14:59:52 +01:00
Felix Fietkau
fc31457cd9
mt7603: implement support for SMPS
...
The hardware needs to be notified of peers using dynamic SMPS mode
Fixes using dual-stream rates on some clients (e.g. Intel)
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-20 17:46:51 +01:00
Felix Fietkau
d273ddd9e3
mt7603: fix number of frames limit in .release_buffered_frames
...
Signed-off-by: Felix Fietkau <[email protected] >
2019-01-15 12:50:01 +01:00
Felix Fietkau
48fb0116f0
mt7603: fix CF-End transmit rate when 11b stations are connected
...
Use a CCK rate in that case
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-30 17:08:40 +01:00
Felix Fietkau
24ec040a97
mt7603: fix BSSID configuration in AP mode
...
Fixes BSSID value in self-generated frames, such as CF-End
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-30 16:41:17 +01:00
Felix Fietkau
148219d572
mt7603: fix checkpatch issues
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-12-29 13:27:35 +01:00
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
cd456ca87f
mt7603: disable broken support for WEP hardware encryption
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-28 15:03:26 +01:00
Felix Fietkau
4734108318
mt7603: use mt7603_wtbl_clear on station removal
...
It removes more stale data from the WTBL
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-21 12:59:13 +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
41931e43ab
mt7603: toggle skip_tx on station add/remove
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-16 12:33:17 +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
fd85ff9a97
mt7603: use mt76_sta_remove helper
...
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-13 11:53:22 +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
29d95328d6
mt7603: fix faulty variable initialization in last commit
...
Should be harmless, since watchdog reset is only performed when necessary
Signed-off-by: Felix Fietkau <[email protected] >
2018-11-08 09:07:11 +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
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
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
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
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