Felix Fietkau
0b8d1ddec9
mt76: fix beacon timer drift
...
The beacon timer drifts by 1 microsecond every TBTT. After 20 minutes
with a beacon interval of 100, the drift will be almost 12 ms, enough to
cause weird issues for devices in powersave mode.
Since the beacon timer is configured in units of 1/16 TU (64 us), we
need to adjust it once every 64 beacons and only for one beacon.
Signed-off-by: Felix Fietkau <[email protected] >
2018-05-18 17:46:01 +02:00
Felix Fietkau
a78673d523
mt76: fix sending encrypted broadcast packets for secondary interfaces
...
For encryption to work properly, the BSS index needs to be initialized
for the WCID entry used for the interface.
Signed-off-by: Felix Fietkau <[email protected] >
2018-05-15 13:03:31 +02:00
Lorenzo Bianconi and Felix Fietkau
e08d5dab5d
mt76x2: fix is_mt7612 routine
...
Fix is_mt7612 routine since asic version is set in mt76_dev revision
field and not in mt76x2_dev one.
Moreover remove mt76x2_dev rev field since it is never used in the
driver
Fixes: 7bc04215a66b ('mt76: add driver code for MT76x2e')
Signed-off-by: Lorenzo Bianconi <[email protected] >
2018-04-18 09:39:48 +02:00
Lorenzo Bianconi and Felix Fietkau
ced433d006
mt76x2: add mac80211 {set,get}_antenna callbacks
...
Add capability to select tx/rx antennas. Possible values are:
- 1: to use only the first antenna
- 2: to use only the second antenna
- 3: to use both of them
Signed-off-by: Lorenzo Bianconi <[email protected] >
2018-03-21 11:23:10 +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
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
d242650960
Revert "mt76x2: remove MAC address limitation for multi-vif setups"
...
This reverts commit 170f3341c6 .
2017-12-17 11:44:47 +01:00
Felix Fietkau
bcd576e710
Revert "mt76x2: drop wiphy->addresses"
...
This reverts commit 9de77e1efc .
2017-12-17 11:44:11 +01:00
Felix Fietkau
9de77e1efc
mt76x2: drop wiphy->addresses
...
Now that the MAC address limitation is resolved, we no longer need a MAC
address list
Signed-off-by: Felix Fietkau <[email protected] >
2017-12-07 19:51:01 +01:00
Felix Fietkau
170f3341c6
mt76x2: remove MAC address limitation for multi-vif setups
...
The hardware has a separate set of registers to configure a
per-interface MAC address.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Felix Fietkau <[email protected] >
2017-12-07 19:50:46 +01:00
Felix Fietkau
4af37bd999
mt76x2: implement dynamic AGC tuning based on false packet detection count
...
Significantly improves radio performance
Signed-off-by: Felix Fietkau <[email protected] >
2017-11-16 19:12:01 +01:00
Felix Fietkau
ff60d1482c
mt76: increase rx ring size for mt76x2
...
Should improve performance under load
Signed-off-by: Felix Fietkau <[email protected] >
2017-11-16 16:26:45 +01:00
Felix Fietkau
e4e773440a
mt76x2: limit client WCID entries to 0-127
...
The rx WCID lookup table and the per-WCID rate table only have 128
entries. All further WCID entries are tx-only.
Signed-off-by: Felix Fietkau <[email protected] >
2017-11-15 17:59:48 +01:00
Rosen Penev and Felix Fietkau
e7647871da
Fix errors found by cppcheck
...
Mismatching declarations as well as unused results.
Signed-off-by: Rosen Penev <[email protected] >
2017-10-27 12:15:53 +02:00
Lorenzo Bianconi and Felix Fietkau
6375fc1abe
mt76x2: add hw radar detector
...
add hw DFS pattern detector support for mt76x2 based devices
DFS region supported:
- FCC
- ETSI
- JAPAN_W53
- JAPAN_W56
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-09-25 18:13:12 +02:00
Lorenzo Bianconi and Felix Fietkau
93907807ca
mt76x2: fix typo in mt76x2_tx_get_max_txpwr_adj() signature
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-09-05 10:43:30 +02:00
Felix Fietkau
d7f5112c09
mt76x2: fix checkpatch warnings
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-09-04 18:59:22 +02:00
Felix Fietkau
53c1b7f6ac
update my email address
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-09-04 17:33:28 +02:00
Lorenzo Bianconi and Felix Fietkau
c3127d2acc
mt76x2: add debugfs entry to enable/disable per packet TPC
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-08-25 12:58:02 +02:00
Lorenzo Bianconi and Felix Fietkau
2637e6b9c0
mt76x2: add tx power adjustment for auto response frames
...
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-08-25 12:57:56 +02:00
Lorenzo Bianconi and Felix Fietkau
aa77eadf0e
mt76x2: add TPC support
...
add per-packet tx power adjustment support
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-08-25 12:57:47 +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
267e959c84
move mt76 rate power struct to mt76.h
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-06-17 12:45:39 +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
11e0a12ce4
mt76x2: fix crash on monitor mode injection
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-06-15 14:59:13 +02: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
02b9245b9e
mt76x2: move efuse debugfs blob to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-22 08:47:26 +01:00
Felix Fietkau
9e305ef093
add rx helper function which uses ieee80211_rx_napi
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-08 15:06:21 +01:00
Felix Fietkau
81ea5f7225
mt76x2: move mt76x2_txq_init to main.c and make it static
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-06 19:22:26 +01:00
Felix Fietkau
fa3ee92842
unify tx completion handling, allow a driver callback to clean up tx skbs
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-06 16:14:02 +01:00
Felix Fietkau
b08f5433d1
tx: move dma mapping code to core, unify tx callbacks into one that prepares tx_info, skb and txwi
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 20:14:53 +01:00
Felix Fietkau
71fae84d55
mt76x2: move mt76x2_set_channel to mt76x2_main.c
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:58:40 +01:00
Felix Fietkau
ebb8d3a74b
mt76x2: move mt76x2_write_reg_pairs to mt76x2_init.c
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:57:25 +01:00
Felix Fietkau
a6d7949f67
move rx polling to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:51:17 +01:00
Felix Fietkau
6b80f6c8dd
pass queue index instead of pointer to rx_skb callback
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:10:33 +01:00
Felix Fietkau
812bcc3a78
mt76x2: move rx queue processing to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:51:07 +01:00
Felix Fietkau
f79b92dde5
mt76x2: move rx queues to struct mt76_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:03:53 +01:00
Felix Fietkau
435c5408a1
mt76x2: implement fragmented rx support
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-01 23:16:51 +01:00
Felix Fietkau
6ca2852f65
move mac address validation to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-01-01 19:38:59 +01:00
Felix Fietkau
93db8eede4
mt76x2: remove msta->sleeping, it is unused
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-20 10:26:01 +01:00
Felix Fietkau
1389db799a
move txwi cache to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-17 15:50:01 +01:00
Felix Fietkau
43d5b84989
move tx scheduling code to common
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 19:04:06 +01:00
Felix Fietkau
a08c4a3cd4
add a driver ops struct to allow mt76 to call into driver specific code, will be used for queueing tx packets (incl. mac header processing)
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 18:38:39 +01:00
Felix Fietkau
645c93fefc
move tx queues to struct mt76_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 18:22:41 +01:00
Felix Fietkau
8ca7f984de
add a comment requiring the mt76_dev struct to be the first member of the driver struct
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 17:53:37 +01:00
Felix Fietkau
42b9c4db0a
move wcid and txq struct to mt76.h in preparation for making tx scheduling code more generic
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 17:45:46 +01:00
Felix Fietkau
239b67204c
move eeprom related code to common
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 02:09:26 +01:00
Felix Fietkau
302db9bb94
move debugfs code to common code
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-08 15:34:24 +01:00