ath10k: fix #if vs #ifdef in led trigger patch
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 930-ath10k_add_tpt_led_trigger.patch
index 8003f86468183ea2bb48c7b73f7d7a91abb463e4..a501b998d0f279eeac266df9a4cd03e5cb731f98 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/ath/ath10k/mac.c
 +++ b/drivers/net/wireless/ath/ath10k/mac.c
-@@ -5416,6 +5416,21 @@ struct ath10k_vif *ath10k_get_arvif(stru
+@@ -7742,6 +7742,21 @@ struct ath10k_vif *ath10k_get_arvif(stru
        return arvif_iter.arvif;
  }
  
  int ath10k_mac_register(struct ath10k *ar)
  {
        static const u32 cipher_suites[] = {
-@@ -5590,6 +5605,12 @@ int ath10k_mac_register(struct ath10k *a
+@@ -7975,6 +7990,12 @@ int ath10k_mac_register(struct ath10k *a
        ar->hw->wiphy->cipher_suites = cipher_suites;
        ar->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
  
-+#if CPTCFG_MAC80211_LEDS
++#ifdef CPTCFG_MAC80211_LEDS
 +      ieee80211_create_tpt_led_trigger(ar->hw,
 +              IEEE80211_TPT_LEDTRIG_FL_RADIO, ath10k_tpt_blink,
 +              ARRAY_SIZE(ath10k_tpt_blink));