Commit 9900e484 authored by Johannes Berg's avatar Johannes Berg
Browse files

nl80211: use ie_len in scheduled scan

We've already checked the IE length and assigned request->ie
based on that, so continue using it to make the code a bit
Signed-off-by: default avatarJohannes Berg <>
parent e7aceef4
...@@ -5709,8 +5709,8 @@ static int nl80211_start_sched_scan(struct sk_buff *skb, ...@@ -5709,8 +5709,8 @@ static int nl80211_start_sched_scan(struct sk_buff *skb,
request->min_rssi_thold = NL80211_SCAN_RSSI_THOLD_OFF; request->min_rssi_thold = NL80211_SCAN_RSSI_THOLD_OFF;
} }
if (info->attrs[NL80211_ATTR_IE]) { if (ie_len) {
request->ie_len = nla_len(info->attrs[NL80211_ATTR_IE]); request->ie_len = ie_len;
memcpy((void *)request->ie, memcpy((void *)request->ie,
nla_data(info->attrs[NL80211_ATTR_IE]), nla_data(info->attrs[NL80211_ATTR_IE]),
request->ie_len); request->ie_len);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment