524-MIPS-ath79-add-ath79_wmac_disable_25ghz-helpers.patch 751 B

12345678910111213141516171819202122232425262728293031
  1. --- a/arch/mips/ath79/dev-wmac.c
  2. +++ b/arch/mips/ath79/dev-wmac.c
  3. @@ -296,6 +296,16 @@ bool __init ar93xx_wmac_read_mac_address
  4. return ret;
  5. }
  6. +void __init ath79_wmac_disable_2ghz(void)
  7. +{
  8. + ath79_wmac_data.disable_2ghz = true;
  9. +}
  10. +
  11. +void __init ath79_wmac_disable_5ghz(void)
  12. +{
  13. + ath79_wmac_data.disable_5ghz = true;
  14. +}
  15. +
  16. void __init ath79_register_wmac(u8 *cal_data, u8 *mac_addr)
  17. {
  18. if (soc_is_ar913x())
  19. --- a/arch/mips/ath79/dev-wmac.h
  20. +++ b/arch/mips/ath79/dev-wmac.h
  21. @@ -14,6 +14,9 @@
  22. void ath79_register_wmac(u8 *cal_data, u8 *mac_addr);
  23. void ath79_register_wmac_simple(void);
  24. +void ath79_wmac_disable_2ghz(void);
  25. +void ath79_wmac_disable_5ghz(void);
  26. +
  27. bool ar93xx_wmac_read_mac_address(u8 *dest);
  28. #endif /* _ATH79_DEV_WMAC_H */