mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: refactor CLC support check flow
Move the disable_clc module parameter to regd.c and introduce mt7925_regd_clc_supported() to centralize CLC support checks. Signed-off-by: Ming Yen Hsieh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0043147439
commit
f0e8fe4414
@@ -5,6 +5,19 @@
|
||||
#include "regd.h"
|
||||
#include "mcu.h"
|
||||
|
||||
static bool mt7925_disable_clc;
|
||||
module_param_named(disable_clc, mt7925_disable_clc, bool, 0644);
|
||||
MODULE_PARM_DESC(disable_clc, "disable CLC support");
|
||||
|
||||
bool mt7925_regd_clc_supported(struct mt792x_dev *dev)
|
||||
{
|
||||
if (mt7925_disable_clc ||
|
||||
mt76_is_usb(&dev->mt76))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void mt7925_regd_be_ctrl(struct mt792x_dev *dev, u8 *alpha2)
|
||||
{
|
||||
struct mt792x_phy *phy = &dev->phy;
|
||||
|
||||
Reference in New Issue
Block a user