404-regd_no_assoc_hints.patch 546 B

12345678910111213141516171819
  1. --- a/net/wireless/reg.c
  2. +++ b/net/wireless/reg.c
  3. @@ -2398,6 +2398,8 @@ void regulatory_hint_country_ie(struct w
  4. enum environment_cap env = ENVIRON_ANY;
  5. struct regulatory_request *request = NULL, *lr;
  6. + return;
  7. +
  8. /* IE len must be evenly divisible by 2 */
  9. if (country_ie_len & 0x01)
  10. return;
  11. @@ -2604,6 +2606,7 @@ static void restore_regulatory_settings(
  12. void regulatory_hint_disconnect(void)
  13. {
  14. + return;
  15. pr_debug("All devices are disconnected, going to restore regulatory settings\n");
  16. restore_regulatory_settings(false);
  17. }