2
0

550-ath9k-disable-bands-via-dt.patch 523 B

123456789101112131415
  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. ath_dbg(common, CONFIG, "parsing configuration from OF node\n");
  5. + if (of_property_read_bool(np, "qca,disable-2ghz"))
  6. + ah->disable_2ghz = true;
  7. +
  8. + if (of_property_read_bool(np, "qca,disable-5ghz"))
  9. + ah->disable_5ghz = true;
  10. +
  11. if (of_property_read_bool(np, "qca,no-eeprom")) {
  12. /* ath9k-eeprom-<bus>-<id>.bin */
  13. scnprintf(eeprom_name, sizeof(eeprom_name),