diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-09-12 17:12:07 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-09-29 22:16:27 +0200 |
commit | d25cc3207db649f6e5de49ba3084fb91076c68c4 (patch) | |
tree | 8f93c4069f0179e7f112fda03911a4827ac3c589 /package/network/utils/iw/patches/130-survey-bss-rx-time.patch | |
parent | 6a3739dc42c1d9626e5784d9316c56962bd8f016 (diff) | |
download | upstream-d25cc3207db649f6e5de49ba3084fb91076c68c4.tar.gz upstream-d25cc3207db649f6e5de49ba3084fb91076c68c4.tar.bz2 upstream-d25cc3207db649f6e5de49ba3084fb91076c68c4.zip |
iw: add patch to include local BSS rx time in survey information
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/utils/iw/patches/130-survey-bss-rx-time.patch')
-rw-r--r-- | package/network/utils/iw/patches/130-survey-bss-rx-time.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/network/utils/iw/patches/130-survey-bss-rx-time.patch b/package/network/utils/iw/patches/130-survey-bss-rx-time.patch new file mode 100644 index 0000000000..d488c141c9 --- /dev/null +++ b/package/network/utils/iw/patches/130-survey-bss-rx-time.patch @@ -0,0 +1,12 @@ +--- a/survey.c ++++ b/survey.c +@@ -60,6 +60,9 @@ static int print_survey_handler(struct n + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX]) + printf("\tchannel receive time:\t\t%llu ms\n", + (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX])); ++ if (sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX]) ++ printf("\tchannel BSS receive time:\t%llu ms\n", ++ (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX])); + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX]) + printf("\tchannel transmit time:\t\t%llu ms\n", + (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX])); |