150-disable_addr_notifier.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --- a/net/mac80211/main.c
  2. +++ b/net/mac80211/main.c
  3. @@ -291,7 +291,7 @@ void ieee80211_restart_hw(struct ieee802
  4. }
  5. EXPORT_SYMBOL(ieee80211_restart_hw);
  6. -#ifdef CONFIG_INET
  7. +#ifdef __disabled__CONFIG_INET
  8. static int ieee80211_ifa_changed(struct notifier_block *nb,
  9. unsigned long data, void *arg)
  10. {
  11. @@ -350,7 +350,7 @@ static int ieee80211_ifa_changed(struct
  12. }
  13. #endif
  14. -#if IS_ENABLED(CONFIG_IPV6)
  15. +#if IS_ENABLED(__disabled__CONFIG_IPV6)
  16. static int ieee80211_ifa6_changed(struct notifier_block *nb,
  17. unsigned long data, void *arg)
  18. {
  19. @@ -1089,14 +1089,14 @@ int ieee80211_register_hw(struct ieee802
  20. rtnl_unlock();
  21. -#ifdef CONFIG_INET
  22. +#ifdef __disabled__CONFIG_INET
  23. local->ifa_notifier.notifier_call = ieee80211_ifa_changed;
  24. result = register_inetaddr_notifier(&local->ifa_notifier);
  25. if (result)
  26. goto fail_ifa;
  27. #endif
  28. -#if IS_ENABLED(CONFIG_IPV6)
  29. +#if IS_ENABLED(__disabled__CONFIG_IPV6)
  30. local->ifa6_notifier.notifier_call = ieee80211_ifa6_changed;
  31. result = register_inet6addr_notifier(&local->ifa6_notifier);
  32. if (result)
  33. @@ -1105,13 +1105,13 @@ int ieee80211_register_hw(struct ieee802
  34. return 0;
  35. -#if IS_ENABLED(CONFIG_IPV6)
  36. +#if IS_ENABLED(__disabled__CONFIG_IPV6)
  37. fail_ifa6:
  38. -#ifdef CONFIG_INET
  39. +#ifdef __disabled__CONFIG_INET
  40. unregister_inetaddr_notifier(&local->ifa_notifier);
  41. #endif
  42. #endif
  43. -#if defined(CONFIG_INET) || defined(CONFIG_IPV6)
  44. +#if defined(__disabled__CONFIG_INET) || defined(__disabled__CONFIG_IPV6)
  45. fail_ifa:
  46. #endif
  47. rtnl_lock();
  48. @@ -1139,10 +1139,10 @@ void ieee80211_unregister_hw(struct ieee
  49. tasklet_kill(&local->tx_pending_tasklet);
  50. tasklet_kill(&local->tasklet);
  51. -#ifdef CONFIG_INET
  52. +#ifdef __disabled__CONFIG_INET
  53. unregister_inetaddr_notifier(&local->ifa_notifier);
  54. #endif
  55. -#if IS_ENABLED(CONFIG_IPV6)
  56. +#if IS_ENABLED(__disabled__CONFIG_IPV6)
  57. unregister_inet6addr_notifier(&local->ifa6_notifier);
  58. #endif