mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: introduce mt7915_mcu_set_txbf()
Use mt7915_mcu_set_txbf() to reduce global functions. This can be easily extended to support other TxBF commands in further patches. Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "mt7915.h"
|
||||
#include "eeprom.h"
|
||||
#include "mcu.h"
|
||||
|
||||
/** global debugfs **/
|
||||
|
||||
@@ -16,7 +17,7 @@ mt7915_implicit_txbf_set(void *data, u64 val)
|
||||
|
||||
dev->ibf = !!val;
|
||||
|
||||
return mt7915_mcu_set_txbf_type(dev);
|
||||
return mt7915_mcu_set_txbf(dev, MT_BF_TYPE_UPDATE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user