303-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch 544 B

1234567891011121314151617181920
  1. From: Felix Fietkau <[email protected]>
  2. Date: Wed, 22 Oct 2014 18:44:03 +0200
  3. Subject: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on
  4. survey
  5. Signed-off-by: Felix Fietkau <[email protected]>
  6. ---
  7. --- a/drivers/net/wireless/ath/ath10k/mac.c
  8. +++ b/drivers/net/wireless/ath/ath10k/mac.c
  9. @@ -4044,6 +4044,9 @@ static int ath10k_get_survey(struct ieee
  10. survey->channel = &sband->channels[idx];
  11. + if (ar->rx_channel == survey->channel)
  12. + survey->filled |= SURVEY_INFO_IN_USE;
  13. +
  14. exit:
  15. mutex_unlock(&ar->conf_mutex);
  16. return ret;