mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
mac80211: update cfg80211 scan result code for the updated mesh conf IE
Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
136cfa2861
commit
76aa5e704c
@ -874,35 +874,40 @@ ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info,
|
|||||||
cfg = ie + 2;
|
cfg = ie + 2;
|
||||||
memset(&iwe, 0, sizeof(iwe));
|
memset(&iwe, 0, sizeof(iwe));
|
||||||
iwe.cmd = IWEVCUSTOM;
|
iwe.cmd = IWEVCUSTOM;
|
||||||
sprintf(buf, "Mesh network (version %d)", cfg[0]);
|
sprintf(buf, "Mesh Network Path Selection Protocol ID: "
|
||||||
|
"0x%02X", cfg[0]);
|
||||||
iwe.u.data.length = strlen(buf);
|
iwe.u.data.length = strlen(buf);
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
end_buf,
|
end_buf,
|
||||||
&iwe, buf);
|
&iwe, buf);
|
||||||
sprintf(buf, "Path Selection Protocol ID: "
|
sprintf(buf, "Path Selection Metric ID: 0x%02X",
|
||||||
"0x%02X%02X%02X%02X", cfg[1], cfg[2], cfg[3],
|
cfg[1]);
|
||||||
cfg[4]);
|
|
||||||
iwe.u.data.length = strlen(buf);
|
iwe.u.data.length = strlen(buf);
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
end_buf,
|
end_buf,
|
||||||
&iwe, buf);
|
&iwe, buf);
|
||||||
sprintf(buf, "Path Selection Metric ID: "
|
sprintf(buf, "Congestion Control Mode ID: 0x%02X",
|
||||||
"0x%02X%02X%02X%02X", cfg[5], cfg[6], cfg[7],
|
cfg[2]);
|
||||||
cfg[8]);
|
|
||||||
iwe.u.data.length = strlen(buf);
|
iwe.u.data.length = strlen(buf);
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
end_buf,
|
end_buf,
|
||||||
&iwe, buf);
|
&iwe, buf);
|
||||||
sprintf(buf, "Congestion Control Mode ID: "
|
sprintf(buf, "Synchronization ID: 0x%02X", cfg[3]);
|
||||||
"0x%02X%02X%02X%02X", cfg[9], cfg[10],
|
|
||||||
cfg[11], cfg[12]);
|
|
||||||
iwe.u.data.length = strlen(buf);
|
iwe.u.data.length = strlen(buf);
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
end_buf,
|
end_buf,
|
||||||
&iwe, buf);
|
&iwe, buf);
|
||||||
sprintf(buf, "Channel Precedence: "
|
sprintf(buf, "Authentication ID: 0x%02X", cfg[4]);
|
||||||
"0x%02X%02X%02X%02X", cfg[13], cfg[14],
|
iwe.u.data.length = strlen(buf);
|
||||||
cfg[15], cfg[16]);
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
|
end_buf,
|
||||||
|
&iwe, buf);
|
||||||
|
sprintf(buf, "Formation Info: 0x%02X", cfg[5]);
|
||||||
|
iwe.u.data.length = strlen(buf);
|
||||||
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
|
end_buf,
|
||||||
|
&iwe, buf);
|
||||||
|
sprintf(buf, "Capabilities: 0x%02X", cfg[6]);
|
||||||
iwe.u.data.length = strlen(buf);
|
iwe.u.data.length = strlen(buf);
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,
|
current_ev = iwe_stream_add_point(info, current_ev,
|
||||||
end_buf,
|
end_buf,
|
||||||
|
Loading…
Reference in New Issue
Block a user