mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: communicate radio on/off state to MCU
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -16,12 +16,19 @@
|
||||
static int
|
||||
mt7603_start(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct mt7603_dev *dev = hw->priv;
|
||||
|
||||
mt76_clear(dev, MT_AGG_TMP, GENMASK(31, 16));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
mt7603_stop(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct mt7603_dev *dev = hw->priv;
|
||||
|
||||
mt76_set(dev, MT_AGG_TMP, GENMASK(31, 16));
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -72,6 +72,12 @@
|
||||
#define MT_SCH_4_FORCE_QID GENMASK(4, 0)
|
||||
#define MT_SCH_4_BYPASS BIT(5)
|
||||
|
||||
#define MT_WF_AGG_BASE 0x21200
|
||||
#define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs))
|
||||
|
||||
#define MT_AGG_TMP MT_WF_AGG(0x0d8)
|
||||
|
||||
|
||||
#define MT_WF_DMA_BASE 0x21c00
|
||||
#define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user