100-kernel_compat.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. @@ -3422,7 +3422,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. @@ -3604,7 +3604,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. @@ -3638,7 +3638,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. @@ -8939,7 +8939,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. @@ -8984,7 +8984,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. @@ -8999,7 +8999,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. @@ -3903,7 +3903,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);
  82. --- a/ath10k-4.13/wmi.c
  83. +++ b/ath10k-4.13/wmi.c
  84. @@ -4031,7 +4031,7 @@ static void ath10k_dfs_radar_report(stru
  85. ATH10K_DFS_STAT_INC(ar, pulses_detected);
  86. - if (!ar->dfs_detector->add_pulse(ar->dfs_detector, &pe)) {
  87. + if (!ar->dfs_detector->add_pulse(ar->dfs_detector, &pe, NULL)) {
  88. ath10k_dbg(ar, ATH10K_DBG_REGULATORY,
  89. "dfs no pulse pattern detected, yet\n");
  90. return;
  91. --- a/ath10k-4.16/wmi.c
  92. +++ b/ath10k-4.16/wmi.c
  93. @@ -4061,7 +4061,7 @@ static void ath10k_dfs_radar_report(stru
  94. ATH10K_DFS_STAT_INC(ar, pulses_detected);
  95. - if (!ar->dfs_detector->add_pulse(ar->dfs_detector, &pe)) {
  96. + if (!ar->dfs_detector->add_pulse(ar->dfs_detector, &pe, NULL)) {
  97. ath10k_dbg(ar, ATH10K_DBG_REGULATORY,
  98. "dfs no pulse pattern detected, yet\n");
  99. return;