55f040f170ed4f19c77e64b189e489873a349af5
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath / 550-ath9k-disable-bands-via-dt.patch
1 --- a/drivers/net/wireless/ath/ath9k/init.c
2 +++ b/drivers/net/wireless/ath/ath9k/init.c
3 @@ -571,6 +571,12 @@ static int ath9k_of_init(struct ath_soft
4
5 ath_dbg(common, CONFIG, "parsing configuration from OF node\n");
6
7 + if (of_property_read_bool(np, "qca,disable-2ghz"))
8 + ah->disable_2ghz = true;
9 +
10 + if (of_property_read_bool(np, "qca,disable-5ghz"))
11 + ah->disable_5ghz = true;
12 +
13 if (of_property_read_bool(np, "qca,no-eeprom")) {
14 /* ath9k-eeprom-<bus>-<id>.bin */
15 scnprintf(eeprom_name, sizeof(eeprom_name),