mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
nl80211: allow drivers to indicate whether the survey data channel is in use
Some user space applications only want to display survey data for the operating channel, however there is no API to get that yet. Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
0bda652300
commit
17e5a80828
3 changed files with 6 additions and 0 deletions
|
|
@ -3489,6 +3489,8 @@ static int nl80211_send_survey(struct sk_buff *msg, u32 pid, u32 seq,
|
|||
if (survey->filled & SURVEY_INFO_NOISE_DBM)
|
||||
NLA_PUT_U8(msg, NL80211_SURVEY_INFO_NOISE,
|
||||
survey->noise);
|
||||
if (survey->filled & SURVEY_INFO_IN_USE)
|
||||
NLA_PUT_FLAG(msg, NL80211_SURVEY_INFO_IN_USE);
|
||||
|
||||
nla_nest_end(msg, infoattr);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue