From 7ef0d026c28a2e0cae0adeab5bae16eb146289d5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 Jun 2022 15:44:57 +0200 Subject: nl80211: fix NL80211_SURVEY_INFO_NOISE datatype Report the noise value as signed integer to calling ucode. Reported-by: John Crispin Signed-off-by: Jo-Philipp Wich --- lib/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, } }; -- cgit v1.2.3