diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-06-27 15:44:57 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-06-27 15:44:57 +0200 |
commit | 7ef0d026c28a2e0cae0adeab5bae16eb146289d5 (patch) | |
tree | 01e1f00ef59cfc6ebb60844b7c4d5582376508f4 /lib/nl80211.c | |
parent | 44bf33a2701d7cf94ae0a41f6befc7f591913e10 (diff) |
nl80211: fix NL80211_SURVEY_INFO_NOISE datatype
Report the noise value as signed integer to calling ucode.
Reported-by: John Crispin <john@phrozen.org>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/nl80211.c')
-rw-r--r-- | lib/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nl80211.c b/lib/nl80211.c index 6a0fd8a..aa84848 100644 --- a/lib/nl80211.c +++ b/lib/nl80211.c @@ -772,7 +772,7 @@ static const uc_nl_nested_spec_t nl80211_survey_info_nla = { { NL80211_SURVEY_INFO_TIME_BUSY, "busy", DT_U64, 0, NULL }, { NL80211_SURVEY_INFO_TIME_EXT_BUSY, "ext_busy", DT_U64, 0, NULL }, { NL80211_SURVEY_INFO_TIME_SCAN, "scan", DT_U64, 0, NULL }, - { NL80211_SURVEY_INFO_NOISE, "noise", DT_U8, 0, NULL }, + { NL80211_SURVEY_INFO_NOISE, "noise", DT_S8, 0, NULL }, } }; |