470-survey_data_fallback.patch 718 B

12345678910111213141516171819202122232425
  1. --- a/src/ap/acs.c
  2. +++ b/src/ap/acs.c
  3. @@ -420,20 +420,19 @@ static int acs_usable_bw160_chan(const s
  4. static int acs_survey_is_sufficient(struct freq_survey *survey)
  5. {
  6. if (!(survey->filled & SURVEY_HAS_NF)) {
  7. + survey->nf = -95;
  8. wpa_printf(MSG_INFO, "ACS: Survey is missing noise floor");
  9. - return 0;
  10. }
  11. if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
  12. + survey->channel_time = 0;
  13. wpa_printf(MSG_INFO, "ACS: Survey is missing channel time");
  14. - return 0;
  15. }
  16. if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
  17. !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
  18. wpa_printf(MSG_INFO,
  19. "ACS: Survey is missing RX and busy time (at least one is required)");
  20. - return 0;
  21. }
  22. return 1;