aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-04-23 14:19:20 (GMT)
committerJouni Malinen <j@w1.fi>2013-04-23 14:19:20 (GMT)
commitadc96dc2ad3b9eeeb79ea817dd00f01b97f4073a (patch)
tree80bbeeccccd6336cc97ebf0157e031f621529687
parent060605226fb7fe0b2e3eec234b842c7ee8c4fcb0 (diff)
downloadhostap-adc96dc2ad3b9eeeb79ea817dd00f01b97f4073a.zip
hostap-adc96dc2ad3b9eeeb79ea817dd00f01b97f4073a.tar.gz
hostap-adc96dc2ad3b9eeeb79ea817dd00f01b97f4073a.tar.bz2
nl80211: Fix nla_nest_start conversion
Dmitry reported that the kernel could no longer parse the scheduled scan attributes correctly after my patch to use nla_nest_start/nla_nest_end. The reason is that the wrong attribute is closed I accidentally made it close the full scan config instead of just the SSID match set. Reported-by: Dmitry Shmidt <dimitrysh@google.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index b53e706..3b0dba4 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4004,7 +4004,7 @@ static int wpa_driver_nl80211_sched_scan(void *priv,
drv->filter_ssids[i].ssid_len,
drv->filter_ssids[i].ssid);
- nla_nest_end(msg, match_sets);
+ nla_nest_end(msg, match_set_ssid);
}
if (params->filter_rssi) {