100-kernel_compat.patch 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --- a/ath10k/debug.c
  2. +++ b/ath10k/debug.c
  3. @@ -166,11 +166,11 @@ void ath10k_debug_print_hwfw_info(struct
  4. ar->id.subsystem_vendor, ar->id.subsystem_device);
  5. ath10k_info(ar, "kconfig debug %d debugfs %d tracing %d dfs %d testmode %d\n",
  6. - config_enabled(CONFIG_ATH10K_DEBUG),
  7. - config_enabled(CONFIG_ATH10K_DEBUGFS),
  8. - config_enabled(CONFIG_ATH10K_TRACING),
  9. - config_enabled(CONFIG_ATH10K_DFS_CERTIFIED),
  10. - config_enabled(CONFIG_NL80211_TESTMODE));
  11. + IS_ENABLED(CONFIG_ATH10K_DEBUG),
  12. + IS_ENABLED(CONFIG_ATH10K_DEBUGFS),
  13. + IS_ENABLED(CONFIG_ATH10K_TRACING),
  14. + IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED),
  15. + IS_ENABLED(CONFIG_NL80211_TESTMODE));
  16. firmware = ar->normal_mode_fw.fw_file.firmware;
  17. if (firmware)
  18. @@ -3397,7 +3397,7 @@ int ath10k_debug_register(struct ath10k
  19. debugfs_create_file("nf_cal_period", S_IRUSR | S_IWUSR,
  20. ar->debug.debugfs_phy, ar, &fops_nf_cal_period);
  21. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED)) {
  22. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED)) {
  23. debugfs_create_file("dfs_simulate_radar", S_IWUSR,
  24. ar->debug.debugfs_phy, ar,
  25. &fops_simulate_radar);
  26. --- a/ath10k/mac.c
  27. +++ b/ath10k/mac.c
  28. @@ -3556,7 +3556,7 @@ static void ath10k_regd_update(struct at
  29. regpair = ar->ath_common.regulatory.regpair;
  30. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector) {
  31. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector) {
  32. nl_dfs_reg = ar->dfs_detector->region;
  33. wmi_dfs_reg = ath10k_mac_get_dfs_region(nl_dfs_reg);
  34. ath10k_dbg(ar, ATH10K_DBG_REGULATORY,
  35. @@ -3590,7 +3590,7 @@ static void ath10k_reg_notifier(struct w
  36. ath_reg_notifier_apply(wiphy, request, &ar->ath_common.regulatory);
  37. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector) {
  38. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector) {
  39. ath10k_dbg(ar, ATH10K_DBG_REGULATORY, "reg-notifier: dfs region 0x%x\n",
  40. request->dfs_region);
  41. result = ar->dfs_detector->set_dfs_domain(ar->dfs_detector,
  42. @@ -8863,7 +8863,7 @@ int ath10k_mac_register(struct ath10k *a
  43. if (!test_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags))
  44. ar->hw->netdev_features = NETIF_F_HW_CSUM;
  45. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED)) {
  46. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED)) {
  47. /* Init ath dfs pattern detector */
  48. ar->ath_common.debug_mask = ATH_DBG_DFS;
  49. ar->dfs_detector = dfs_pattern_detector_init(&ar->ath_common,
  50. @@ -8908,7 +8908,7 @@ err_unregister:
  51. ieee80211_unregister_hw(ar->hw);
  52. err_dfs_detector_exit:
  53. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector)
  54. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector)
  55. ar->dfs_detector->exit(ar->dfs_detector);
  56. err_free:
  57. @@ -8923,7 +8923,7 @@ void ath10k_mac_unregister(struct ath10k
  58. {
  59. ieee80211_unregister_hw(ar->hw);
  60. - if (config_enabled(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector)
  61. + if (IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED) && ar->dfs_detector)
  62. ar->dfs_detector->exit(ar->dfs_detector);
  63. kfree(ar->mac.sbands[NL80211_BAND_2GHZ].channels);
  64. --- a/ath10k/thermal.c
  65. +++ b/ath10k/thermal.c
  66. @@ -192,7 +192,7 @@ int ath10k_thermal_register(struct ath10
  67. /* Avoid linking error on devm_hwmon_device_register_with_groups, I
  68. * guess linux/hwmon.h is missing proper stubs. */
  69. - if (!config_enabled(CONFIG_HWMON))
  70. + if (!IS_ENABLED(CONFIG_HWMON))
  71. return 0;
  72. hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev,
  73. --- a/ath10k/wmi.c
  74. +++ b/ath10k/wmi.c
  75. @@ -3788,7 +3788,7 @@ void ath10k_wmi_event_dfs(struct ath10k
  76. phyerr->tsf_timestamp, tsf, buf_len);
  77. /* Skip event if DFS disabled */
  78. - if (!config_enabled(CONFIG_ATH10K_DFS_CERTIFIED))
  79. + if (!IS_ENABLED(CONFIG_ATH10K_DFS_CERTIFIED))
  80. return;
  81. ATH10K_DFS_STAT_INC(ar, pulses_total);