summaryrefslogtreecommitdiffhomepage
path: root/lib/nl80211.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-27 15:44:57 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-27 15:44:57 +0200
commit7ef0d026c28a2e0cae0adeab5bae16eb146289d5 (patch)
tree01e1f00ef59cfc6ebb60844b7c4d5582376508f4 /lib/nl80211.c
parent44bf33a2701d7cf94ae0a41f6befc7f591913e10 (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.c2
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 },
}
};