404-regd_no_assoc_hints.patch 614 B

12345678910111213141516171819
  1. --- a/net/wireless/reg.c
  2. +++ b/net/wireless/reg.c
  3. @@ -3313,6 +3313,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. @@ -3564,6 +3566,7 @@ static bool is_wiphy_all_set_reg_flag(en
  12. void regulatory_hint_disconnect(void)
  13. {
  14. + return;
  15. /* Restore of regulatory settings is not required when wiphy(s)
  16. * ignore IE from connected access point but clearance of beacon hints
  17. * is required when wiphy(s) supports beacon hints.