Commit Graph
75 Commits
Author SHA1 Message Date
Felix Fietkau 246d548b06 mt76: stop tx queues from the driver callback instead of common code
Allows the driver to control whether to send a BlockAckReq after waking
up. MT76x2 needs this set to true, for MT7603 it needs to be false

Signed-off-by: Felix Fietkau <[email protected]>
2018-02-09 16:01:39 +01:00
Felix Fietkau f515dfcca1 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-26 11:41:38 +01:00
Felix Fietkau 9b2c77826d mt76: validate rx CCMP PN
Apparently hardware does not perform CCMP PN validation in hardware, so
we need to take care of this in the driver.

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-22 11:06:19 +01:00
Felix Fietkau 461cdf9f01 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-22 11:06:17 +01:00
Felix Fietkau b0508d3044 mt76: implement A-MPDU rx reordering in the driver code
This is required for performing CCMP PN validation in software

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-22 10:43:21 +01:00
Felix Fietkau 58a41f17aa mt76: get station pointer by wcid and pass it to mac80211
Avoids the rhashtable lookup based on the MAC address inside mac80211

Signed-off-by: Felix Fietkau <[email protected]>
2018-01-22 10:14:25 +01:00
Lorenzo BianconiandFelix Fietkau 31e9bdb1af mt7603: main: fix possible NULL pointer dereferencing in mt7603_ampdu_action()
Initialize mt76_txq pointer after ieee80211_txq pointer check.
Remove space after the pointer cast

Signed-off-by: Lorenzo Bianconi <[email protected]>
2017-12-15 15:30:53 +01:00
Felix Fietkau 00f7e60e98 mt7603: fix configuration for HT40
Signed-off-by: Felix Fietkau <[email protected]>
2017-12-14 17:59:37 +01:00
Felix Fietkau e504656052 mt7603: configure other-unicast drop based on monitor mode setting
Signed-off-by: Felix Fietkau <[email protected]>
2017-12-08 13:29:19 +01:00
Felix Fietkau c8e5ab19ea mt7603: initialize wtbl ps flag on station add
Ensure that the firmware hasn't changed anything

Signed-off-by: Felix Fietkau <[email protected]>
2017-12-03 17:32:34 +01:00
Felix Fietkau c4dd32abb5 mt7603: remove watchdog reset on interface stop
It can be harmful in some cases

Signed-off-by: Felix Fietkau <[email protected]>
2017-12-01 17:51:44 +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 6fdf3a700f mt7603: defer unconditional hw reset to stop call
Makes repeated down/up calls more reliable

Signed-off-by: Felix Fietkau <[email protected]>
2017-05-25 21:44:10 +02:00
Felix Fietkau 1a3ec7760c mt7603: disable beacon timers during scan
Signed-off-by: Felix Fietkau <[email protected]>
2017-03-21 11:06:19 +01:00
Felix Fietkau b2d023520f mt7603: remove redundant mac start
Signed-off-by: Felix Fietkau <[email protected]>
2017-03-21 10:34:22 +01:00
Felix Fietkau 4a54ab381c mt7603: fall back to software crypto for IBSS/Mesh per-sta GTK
Signed-off-by: Felix Fietkau <[email protected]>
2017-03-17 13:29:23 +01:00
Felix Fietkau f22273bf85 mt7603: init WTBL entry before setting capabilities
Signed-off-by: Felix Fietkau <[email protected]>
2017-03-15 14:24:38 +01:00
Felix Fietkau 29a89c4be0 adjust MODULE_LICENSE for license change
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-05 11:34:38 +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 3d36d4b649 mt7603: fix bssid register settings on assoc/ibss-join
Signed-off-by: Felix Fietkau <[email protected]>
2016-08-25 12:52:16 +02:00
Felix Fietkau 313e83c063 mt7603: main: reconfigure bssid after ibss join in ad-hoc mode
Signed-off-by: Felix Fietkau <[email protected]>
2016-08-25 12:45:04 +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 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 c5b46a88c2 mt7603: use indirect rate table update
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 21:49:36 +01:00
Hirokazu MORIKAWAandFelix Fietkau ebabbad04b mt7603: add missing include
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 15:42:55 +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 675868d4e8 mt7603: opt out of the tx BAR refresh at wakeup time
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 22:02:21 +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 6017119a99 mt7603: fix rx filter init error
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-27 10:30:09 +01:00
Felix Fietkau fd572ffc4c mt7603: fix hw queue assignment for WMM parameters
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-27 10:17:47 +01:00
Felix Fietkau 1745cd3a0f mt7603: disable beacons when shutting down a vif
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-26 21:56:18 +01:00
Felix Fietkau 53e0f26068 mt7603: stop tx queues on sta sleep
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-26 19:00:18 +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 f6092c88ed mt7603: adjust rx filter to receive broadcast packets properly
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-22 23:55:09 +01:00
Felix Fietkau e24039cc45 mt7603: initialize group key (still uses sw crypto for rx)
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-22 23:48:53 +01:00
Felix Fietkau 84031b4c4c mt7603: fix using sta rate table
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-20 21:33:29 +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 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 11787e548a mt7603: initialize BSSID register
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 18:48:10 +01:00
Felix Fietkau b4c31fe69a mt7603: implement mt7603_ampdu_action
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 18:09:45 +01:00
Felix Fietkau 33189cedfa mt7603: fix wcid leak
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-19 09:26:42 +01:00
Felix Fietkau f476dcaab8 mt7603: set/clear the MT76_STATE_RUNNING flag on start/stop
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-18 21:58:21 +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