2017-02-02 11:02:22 +00:00
|
|
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
2018-09-23 16:02:35 +00:00
|
|
|
@@ -627,6 +627,12 @@ static int ath9k_of_init(struct ath_soft
|
2017-02-02 11:02:22 +00:00
|
|
|
|
|
|
|
ath_dbg(common, CONFIG, "parsing configuration from OF node\n");
|
|
|
|
|
|
|
|
+ if (of_property_read_bool(np, "qca,disable-2ghz"))
|
|
|
|
+ ah->disable_2ghz = true;
|
|
|
|
+
|
|
|
|
+ if (of_property_read_bool(np, "qca,disable-5ghz"))
|
|
|
|
+ ah->disable_5ghz = true;
|
|
|
|
+
|
|
|
|
if (of_property_read_bool(np, "qca,no-eeprom")) {
|
|
|
|
/* ath9k-eeprom-<bus>-<id>.bin */
|
|
|
|
scnprintf(eeprom_name, sizeof(eeprom_name),
|