Skip to content

Commit

Permalink
nl80211: fix NL80211_SURVEY_INFO_NOISE datatype
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jow- committed Jun 27, 2022
1 parent 44bf33a commit 7ef0d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nl80211.c
Expand Up @@ -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 },
}
};

Expand Down

0 comments on commit 7ef0d02

Please sign in to comment.