scan: initial support for the direct probe request

This enables the discovery of the hidden networks
This commit is contained in:
Tim Kourt 2018-07-10 15:46:56 -07:00 committed by Denis Kenzior
parent d1a8e191e9
commit f7a30106bf
1 changed files with 8 additions and 1 deletions

View File

@ -292,7 +292,14 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc, bool passive,
if (!passive) {
l_genl_msg_enter_nested(msg, NL80211_ATTR_SCAN_SSIDS);
l_genl_msg_append_attr(msg, NL80211_ATTR_SSID, 0, NULL);
if (params->ssid)
l_genl_msg_append_attr(msg, NL80211_ATTR_SSID,
strlen(params->ssid),
params->ssid);
else
l_genl_msg_append_attr(msg, NL80211_ATTR_SSID, 0, NULL);
l_genl_msg_leave_nested(msg);
}