Commit Graph
465 Commits
Author SHA1 Message Date
Felix Fietkau b74180f517 core: rename register trace events to avoid conflict with mt7601u
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-05 11:29:58 +02:00
Felix Fietkau b18d66f749 core: fix checkpatch errors
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-05 11:12:19 +02:00
Lorenzo BianconiandFelix 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 becce8bd46 mt76x2: fix more checkpatch errors
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-05 10:08:16 +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 05e961782d move mt76_insert_hdr_pad to mt76x2_tx.c
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-04 18:06:48 +02:00
Felix Fietkau 01c63035b6 move mt76_remove_hdr_pad to mt76x2_mac.c
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-04 18:05:40 +02: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
Lorenzo BianconiandFelix 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 BianconiandFelix 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 BianconiandFelix 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 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
Lorenzo BianconiandFelix Fietkau 9a75c6caa0 mt76x2: phy: fix typo in rate-power configuration
fix typo in MT_TX_PWR_CFG_7 configuration for OFDM_54M max
tx power adjustment

Signed-off-by: Lorenzo Bianconi <[email protected]>
2016-07-11 09:56:58 +02:00
Lorenzo BianconiandFelix Fietkau caff56f908 mt76x2: phy: cosmetics
replace spaces with tabs in mt76x2_phy_set_txpower()

Signed-off-by: Lorenzo Bianconi <[email protected]>
2016-07-11 09:56:49 +02:00
Daniel GolleandFelix Fietkau 9226e96c40 tx: remove spurious semicolon
Remove spurious semicolon resulting in ieee80211_sta_set_buffered()
being always called independent from the result of the expression
evaluated by the preceding if-clause.

Spotted by gcc-6 while attempting to build the driver outside of the
buildroot.

Signed-off-by: Daniel Golle <[email protected]>
2016-07-08 10:20:53 +02:00
Felix Fietkau f06ed811cd mt76x2: handle peer in dynamic SMPS mode
Signed-off-by: Felix Fietkau <[email protected]>
2016-06-17 14:44:12 +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 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 271a9998f9 mt7603: skip tx chain 0 power values efuse override for MT76x8
Signed-off-by: Felix Fietkau <[email protected]>
2016-06-17 10:34:27 +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 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