130-survey-bss-rx-time.patch 630 B

123456789101112
  1. --- a/survey.c
  2. +++ b/survey.c
  3. @@ -60,6 +60,9 @@ static int print_survey_handler(struct n
  4. if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX])
  5. printf("\tchannel receive time:\t\t%llu ms\n",
  6. (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX]));
  7. + if (sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX])
  8. + printf("\tchannel BSS receive time:\t%llu ms\n",
  9. + (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX]));
  10. if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX])
  11. printf("\tchannel transmit time:\t\t%llu ms\n",
  12. (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX]));