Commit Graph
443 Commits
Author SHA1 Message Date
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 810eef8383 sync with mac80211 ieee80211_rx_napi API change
Signed-off-by: Felix Fietkau <[email protected]>
2016-05-14 16:52:23 +02:00
Felix Fietkau e4c05ba162 use nl80211_band instead of ieee80211_band
Signed-off-by: Felix Fietkau <[email protected]>
2016-05-14 16:51:44 +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
Andrew YongandFelix Fietkau 7605d326e6 Add 14c3:7612 device ID
MT7602EN chip on SamKnows Whitebox 8 (SK-WB8) hardware reports a device ID of 14c3:7612.

Confirmed working with mt76:

01:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7612]
	Subsystem: MEDIATEK Corp. Device [14c3:7612]
	Kernel driver in use: mt76x2e

root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/mt76/txpower
Target power: 33
     Delta: -2 -2
       CCK:  3  3  3  3
      OFDM:  3  3  3  3  2  2  2  2
        HT:  3  3  3  3  2  2  2  2  3  3  3  3  2  2  0  0
       VHT:  2  2  2  2  2  2  2  2 -1 -1

Signed-off-by: Felix Fietkau <[email protected]>
2016-04-29 21:22:33 +07:00
Felix Fietkau 9ecf04c4d7 tx: fix locking error pointed out by dnnn88
Signed-off-by: Felix Fietkau <[email protected]>
2016-04-12 11:52:43 +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 9af6f18974 mt7603: disable HT CCK rates, they fail under A-MPDU sessions
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 20:55:38 +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 101dacba43 tx: always leave one descriptor free in the dma ring to avoid getting the queue stuck
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 12:40:20 +01:00
Felix Fietkau 4554e8a23d tx: add missing locking in mt76_txq_schedule_all
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 12:40:20 +01:00
Felix Fietkau 7e9d52f998 tx: add missing locking in mt76_release_buffered_frames
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-04 12:40:20 +01:00
Felix Fietkau 310d420178 mt76x2: fix txwi leak on cleanup
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 22:10:28 +01:00
Felix Fietkau 4994946a29 mt7603: fix cleanup order
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 22:05:07 +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 654686b96d mt76x2: purge MCU response queue on exit
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 20:13:57 +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 6355f35431 move tx queue wake to common code outside of locked section, fixes queue wake on mt7603
Signed-off-by: Felix Fietkau <[email protected]>
2016-03-03 15:57:39 +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 0298666b0d add mt7628 firmware
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 91bbd56057 mt7603: use regular queue cleanup for CAB tx
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:57:25 +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 a957f7480e dma: add function for resetting the state of an rx queue
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 21:14:48 +01:00
Felix Fietkau fb818ab727 dma: write cpu index after queue flush, useful for hardware resets
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
Felix Fietkau 779c94e37d mt7603: fix DMA watchdog check
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 11:14:09 +01:00
Felix Fietkau f2add7b2f0 mt7603: remove remaining parts of unsupported LDPC mode
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 10:49:37 +01:00
Felix Fietkau 06619cd877 fix freeing frames on tx
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 10:47:27 +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 b9e4d89bb0 mt7603: improve definition of CAB count registers
Signed-off-by: Felix Fietkau <[email protected]>
2016-02-28 09:54:59 +01:00